Documentation
¶
Index ¶
- func CountZettels(zetDir string) (int, error)
- func CreateZettel(zetDir, zetID, title string) error
- func DeleteZettel(zetDir, zetID string) error
- func GenerateZettelID() string
- func GetLastZettelID(zetDir string) (string, error)
- func GetZettelTitle(zetDir, zetID string) (string, error)
- func GitCommit(zetDir, zetID, title string) error
- func GitDeleteZettel(zetDir, zetID, title string) error
- func GitInit(path string) error
- func GitInitAndCommit(path, message string) error
- func IsValidZettelID(id string) bool
- func ReadZettelContent(zetDir, zetID string) (string, error)
- func UpdateReadme(zetDir string) error
- func WriteZettelContent(zetDir, zetID, content string) error
- type CountZettelsArgs
- type CountZettelsResult
- type CreateZettelArgs
- type CreateZettelResult
- type DeleteZettelArgs
- type DeleteZettelResult
- type FindTodosArgs
- type FindTodosResult
- type GetLastZettelArgs
- type GetLastZettelResult
- type GetZettelArgs
- type GetZettelResult
- type ListZettelsArgs
- type ListZettelsResult
- type MCPServer
- type SearchResult
- type SearchResultInfo
- type SearchTitlesArgs
- type SearchTitlesResult
- type SearchZettelsArgs
- type SearchZettelsResult
- type UpdateZettelArgs
- type UpdateZettelResult
- type Zettel
- type ZettelInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CountZettels ¶
func CreateZettel ¶
func DeleteZettel ¶
func GenerateZettelID ¶
func GenerateZettelID() string
func GetLastZettelID ¶
func GetZettelTitle ¶
func GitDeleteZettel ¶
func GitInitAndCommit ¶
GitInitAndCommit initializes a git repository and makes an initial commit
func IsValidZettelID ¶
func ReadZettelContent ¶
ReadZettelContent reads the full content of a zettel
func UpdateReadme ¶
func WriteZettelContent ¶
WriteZettelContent writes content to a zettel
Types ¶
type CountZettelsArgs ¶
type CountZettelsArgs struct{}
type CountZettelsResult ¶
type CountZettelsResult struct {
Count int `json:"count" jsonschema:"total number of zettels"`
}
type CreateZettelArgs ¶
type CreateZettelArgs struct {
Title string `json:"title" jsonschema:"title for the new zettel (optional, can be empty)"`
}
type CreateZettelResult ¶
type DeleteZettelArgs ¶
type DeleteZettelArgs struct {
ZettelID string `json:"zettel_id" jsonschema:"the ID of the zettel to delete"`
}
type DeleteZettelResult ¶
type DeleteZettelResult struct {
Message string `json:"message" jsonschema:"status message"`
}
type FindTodosArgs ¶
type FindTodosArgs struct{}
type FindTodosResult ¶
type FindTodosResult struct {
Results []SearchResultInfo `json:"results" jsonschema:"list of todo items found"`
Count int `json:"count" jsonschema:"total number of todos"`
}
type GetLastZettelArgs ¶
type GetLastZettelArgs struct{}
type GetLastZettelResult ¶
type GetZettelArgs ¶
type GetZettelArgs struct {
ZettelID string `json:"zettel_id" jsonschema:"the ID or partial ID of the zettel to retrieve"`
}
type GetZettelResult ¶
type ListZettelsArgs ¶
type ListZettelsArgs struct {
Limit int `json:"limit,omitempty" jsonschema:"maximum number of zettels to return (default: all)"`
}
type ListZettelsResult ¶
type ListZettelsResult struct {
Zettels []ZettelInfo `json:"zettels" jsonschema:"list of zettels"`
Count int `json:"count" jsonschema:"total number of zettels returned"`
}
type MCPServer ¶
type MCPServer struct {
// contains filtered or unexported fields
}
MCPServer wraps the MCP server with zettelkasten operations
func NewMCPServer ¶
NewMCPServer creates a new MCP server for zettelkasten operations
type SearchResult ¶
func FindTodos ¶
func FindTodos(zetDir string) ([]SearchResult, error)
func SearchInFile ¶
func SearchInFile(filePath, searchTerm string) []SearchResult
func SearchZettels ¶
func SearchZettels(zetDir, pattern string) ([]SearchResult, error)
type SearchResultInfo ¶
type SearchTitlesArgs ¶
type SearchTitlesArgs struct {
Pattern string `json:"pattern" jsonschema:"search pattern for titles (case-insensitive substring match)"`
}
type SearchTitlesResult ¶
type SearchTitlesResult struct {
Zettels []ZettelInfo `json:"zettels" jsonschema:"list of zettels with matching titles"`
Count int `json:"count" jsonschema:"total number of matches"`
}
type SearchZettelsArgs ¶
type SearchZettelsArgs struct {
Pattern string `json:"pattern" jsonschema:"search pattern (case-insensitive substring match)"`
}
type SearchZettelsResult ¶
type SearchZettelsResult struct {
Results []SearchResultInfo `json:"results" jsonschema:"list of search results"`
Count int `json:"count" jsonschema:"total number of matches"`
}
type UpdateZettelArgs ¶
type UpdateZettelResult ¶
type UpdateZettelResult struct {
Message string `json:"message" jsonschema:"status message"`
}
type Zettel ¶
func FindMatchingZettels ¶
func ListZettels ¶
func ListZettelsFromIndex ¶
ListZettelsFromIndex reads the zettel list from the root README.md index file. This is much faster than ListZettels as it reads a single file instead of opening each zettel's README.md. Falls back to ListZettels if index is missing.
func SearchZettelTitles ¶
type ZettelInfo ¶
Click to show internal directories.
Click to hide internal directories.