mcp

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2026 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeListVaultFilesHandler

MakeListVaultFilesHandler returns the handler for the list_vault_files tool.

func MakeReadVaultFileHandler

MakeReadVaultFileHandler returns the handler for the read_vault_file tool.

func NewServer

func NewServer(registryPath string) *sdkmcp.Server

NewServer creates a configured MCP server. registryPath is the path to .pickaxe.json; it is re-read on every tool call so changes from `pickaxe add` are visible without restarting the server.

Types

type ListVaultFilesParams

type ListVaultFilesParams struct{}

ListVaultFilesParams is the (empty) parameter struct for list_vault_files.

type ReadVaultFileParams

type ReadVaultFileParams struct {
	Name string `json:"name"`
}

ReadVaultFileParams is the parameter struct for read_vault_file.

type VaultReader

type VaultReader interface {
	ListFiles() ([]vault.ResolvedFile, error)
	ReadFile(name string) (string, error)
}

VaultReader abstracts vault access for testability.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL