Documentation
¶
Overview ¶
Package mcpserver exposes MemSpace to agents over MCP (streamable HTTP). Tools are thin adapters over the same business packages as the REST API (search, sessions, contextpack), so they apply the same owner and scope rules. All tool output is historical data, never instructions.
Index ¶
Constants ¶
const Version = "0.1.0"
Version is reported to MCP clients.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GetMemoryArgs ¶
type GetMemoryArgs struct {
Ref string `json:"ref" jsonschema:"a ref (event id) or session id from another MemSpace tool"`
}
type HistoryArgs ¶
type HistoryArgs struct {
ProjectArgs
Agent string `json:"agent,omitempty" jsonschema:"filter by agent: claude-code or codex"`
Limit int `json:"limit,omitempty" jsonschema:"maximum sessions (default 10, max 50)"`
}
type ProjectArgs ¶
type ProjectArgs struct {
Cwd string `json:"cwd,omitempty" jsonschema:"the agent's current working directory, used to identify the project"`
Project string `json:"project,omitempty" jsonschema:"project name or normalized git remote (e.g. github.com/org/repo); alternative to cwd"`
}
ProjectArgs identify the project for a tool call.
type ProjectContextArgs ¶
type ProjectContextArgs struct {
ProjectArgs
Query string `json:"query,omitempty" jsonschema:"what you are about to work on; adds related history"`
}
type ResumeArgs ¶
type ResumeArgs struct {
ProjectArgs
SessionID string `json:"session_id,omitempty" jsonschema:"session to resume; default: most recent session in the project"`
}
type SearchArgs ¶
type SearchArgs struct {
ProjectArgs
Query string `json:"query" jsonschema:"what to search for, in any language"`
Scope string `json:"scope,omitempty" jsonschema:"current_project (default) or all_projects"`
Kinds []string `json:"kinds,omitempty" jsonschema:"restrict to: prompt, reply, failure, command, change, summary"`
Limit int `json:"limit,omitempty" jsonschema:"maximum results (default 10, max 50)"`
}