Documentation
¶
Index ¶
- Constants
- type Server
- func (s *Server) CallTool(ctx context.Context, name string, argsJSON json.RawMessage) (*mcp.CallToolResult, error)
- func (s *Server) MCPServer() *mcp.Server
- func (s *Server) Router() *store.StoreRouter
- func (s *Server) SessionProject() string
- func (s *Server) SetSessionRoot(rootPath string)
- func (s *Server) StartWatcher(ctx context.Context)
- func (s *Server) ToolNames() []string
Constants ¶
View Source
const Version = "0.3.2"
Version is the current release version, referenced by MCP handshake and update checker.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server wraps the MCP server with tool handlers.
func NewServer ¶
func NewServer(r *store.StoreRouter) *Server
NewServer creates a new MCP server with all tools registered.
func (*Server) CallTool ¶ added in v0.1.4
func (s *Server) CallTool(ctx context.Context, name string, argsJSON json.RawMessage) (*mcp.CallToolResult, error)
CallTool invokes a tool handler directly by name, bypassing MCP transport.
func (*Server) Router ¶ added in v0.2.0
func (s *Server) Router() *store.StoreRouter
Router returns the underlying StoreRouter for direct access (e.g. CLI mode).
func (*Server) SessionProject ¶ added in v0.2.0
SessionProject returns the auto-detected session project name (may be empty).
func (*Server) SetSessionRoot ¶ added in v0.2.0
SetSessionRoot sets the session root path directly (for CLI mode).
func (*Server) StartWatcher ¶ added in v0.1.2
StartWatcher launches the background file-change polling goroutine. It stops when ctx is cancelled.
Click to show internal directories.
Click to hide internal directories.