Documentation
¶
Index ¶
- type AddTaskArgs
- type AddTaskResult
- type CountNotesArgs
- type CountNotesResult
- type CreateNoteArgs
- type CreateNoteResult
- type CreateProjectArgs
- type CreateProjectResult
- type DeleteNoteArgs
- type DeleteNoteResult
- type FindTasksArgs
- type FindTasksResult
- type GetLastNoteArgs
- type GetLastNoteResult
- type GetLinesArgs
- type GetLinesResult
- type GetNoteArgs
- type GetNoteResult
- type GetTOCArgs
- type GetTOCResult
- type LineMatch
- type ListNotesArgs
- type ListNotesResult
- type ListProjectsArgs
- type ListProjectsResult
- type MCPServer
- type NoteInfo
- type ProjectInfo
- type SearchNotesArgs
- type SearchNotesResult
- type SearchResultInfo
- type SearchTitlesArgs
- type SearchTitlesResult
- type TaskInfo
- type UpdateNoteArgs
- type UpdateNoteResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddTaskArgs ¶
type AddTaskArgs struct {
Project string `json:"project" jsonschema:"project name"`
NoteID string `json:"note_id" jsonschema:"note ID to add task to"`
Keyword string `json:"keyword" jsonschema:"task keyword (e.g., TODO, TASK). Call get_keywords from todo MCP to see valid keywords."`
Title string `json:"title" jsonschema:"task title/description"`
ID string `json:"id,omitempty" jsonschema:"optional unique task identifier for creating references"`
References []string `json:"references,omitempty" jsonschema:"optional list of task IDs this task depends on (creates ^id references)"`
}
Task types
type AddTaskResult ¶
type CountNotesArgs ¶
type CountNotesArgs struct {
Project string `json:"project" jsonschema:"project name"`
}
type CountNotesResult ¶
type CreateNoteArgs ¶
type CreateNoteResult ¶
type CreateProjectArgs ¶
type CreateProjectArgs struct {
Name string `json:"name" jsonschema:"project name to create"`
}
type CreateProjectResult ¶
type DeleteNoteArgs ¶
type DeleteNoteResult ¶
type DeleteNoteResult struct {
Message string `json:"message" jsonschema:"status message"`
}
type FindTasksArgs ¶
type FindTasksArgs struct {
Project string `json:"project" jsonschema:"project name"`
}
type FindTasksResult ¶
type GetLastNoteArgs ¶
type GetLastNoteArgs struct {
Project string `json:"project" jsonschema:"project name"`
}
type GetLastNoteResult ¶
type GetLastNoteResult struct {
ID string `json:"id" jsonschema:"note ID"`
Title string `json:"title" jsonschema:"note title"`
Content string `json:"content" jsonschema:"full content of the note"`
Path string `json:"path" jsonschema:"file path to the note"`
Project string `json:"project" jsonschema:"project name"`
}
type GetLinesArgs ¶
type GetLinesArgs struct {
Project string `json:"project" jsonschema:"project name"`
NoteID string `json:"note_id" jsonschema:"note ID or partial ID"`
Pattern string `` /* 135-byte string literal not displayed */
LineNumber int `` /* 133-byte string literal not displayed */
LinesBefore int `json:"lines_before,omitempty" jsonschema:"number of lines to return before the anchor (default: 0)"`
LinesAfter int `json:"lines_after,omitempty" jsonschema:"number of lines to return after the anchor (default: 0)"`
}
GetLines types
type GetLinesResult ¶
type GetNoteArgs ¶
type GetNoteResult ¶
type GetNoteResult struct {
ID string `json:"id" jsonschema:"note ID"`
Title string `json:"title" jsonschema:"note title"`
Content string `json:"content" jsonschema:"full content of the note"`
Path string `json:"path" jsonschema:"file path to the note"`
Project string `json:"project" jsonschema:"project name"`
}
type GetTOCArgs ¶
type GetTOCArgs struct {
Project string `json:"project" jsonschema:"project name"`
}
TOC types
type GetTOCResult ¶
type LineMatch ¶
type LineMatch struct {
AnchorLine int `json:"anchor_line" jsonschema:"line number of the matched/anchor line (1-based)"`
AnchorText string `json:"anchor_text" jsonschema:"text of the anchor line"`
LinesBefore []string `json:"lines_before,omitempty" jsonschema:"lines before the anchor"`
LinesAfter []string `json:"lines_after,omitempty" jsonschema:"lines after the anchor"`
StartLine int `json:"start_line" jsonschema:"first line number in the returned range (1-based)"`
EndLine int `json:"end_line" jsonschema:"last line number in the returned range (1-based)"`
}
type ListNotesArgs ¶
type ListNotesArgs struct {
Project string `json:"project" jsonschema:"project name"`
Limit int `json:"limit,omitempty" jsonschema:"maximum number of notes to return (default: all)"`
}
Note types
type ListNotesResult ¶
type ListProjectsResult ¶
type ListProjectsResult struct {
Projects []ProjectInfo `json:"projects" jsonschema:"list of projects"`
Count int `json:"count" jsonschema:"total number of projects"`
}
type MCPServer ¶
type MCPServer struct {
// contains filtered or unexported fields
}
MCPServer wraps the MCP server with note operations
func NewMCPServer ¶
NewMCPServer creates a new MCP server for note operations
type ProjectInfo ¶
type ProjectInfo struct {
Name string `json:"name" jsonschema:"project name"`
Path string `json:"path" jsonschema:"project directory path"`
HasNotes bool `json:"has_notes" jsonschema:"whether project has notes directory"`
NoteCount int `json:"note_count" jsonschema:"number of notes in project"`
TaskCount int `json:"task_count" jsonschema:"number of active tasks in project"`
}
type SearchNotesArgs ¶
type SearchNotesArgs struct {
Project string `json:"project" jsonschema:"project name"`
Pattern string `json:"pattern" jsonschema:"search pattern (case-insensitive substring match)"`
}
Search types
type SearchNotesResult ¶
type SearchNotesResult struct {
Results []SearchResultInfo `json:"results" jsonschema:"list of search results"`
Count int `json:"count" jsonschema:"total number of matches"`
Project string `json:"project" jsonschema:"project name"`
}
type SearchResultInfo ¶
type SearchTitlesArgs ¶
type SearchTitlesResult ¶
type UpdateNoteArgs ¶
type UpdateNoteResult ¶
Click to show internal directories.
Click to hide internal directories.