Documentation
¶
Overview ¶
Package mcp implements a Model Context Protocol (MCP) server for Creel.
The server exposes Creel operations as MCP tools, allowing AI agents to interact with the Creel memory platform via the MCP stdio protocol.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is an MCP server that exposes Creel tools.
func NewServer ¶
func NewServer(handler *ToolHandler) *Server
NewServer creates a new MCP server backed by the given tool handler.
type Tool ¶
type Tool struct {
Name string `json:"name"`
Description string `json:"description"`
InputSchema json.RawMessage `json:"inputSchema"`
}
Tool describes an MCP tool.
type ToolHandler ¶
type ToolHandler struct {
// contains filtered or unexported fields
}
ToolHandler executes MCP tool calls against Creel gRPC services.
func NewToolHandler ¶
func NewToolHandler( apiKey string, topics pb.TopicServiceClient, docs pb.DocumentServiceClient, chunks pb.ChunkServiceClient, retrieval pb.RetrievalServiceClient, memory pb.MemoryServiceClient, jobs pb.JobServiceClient, ) *ToolHandler
NewToolHandler creates a tool handler with gRPC service clients.
func (*ToolHandler) Execute ¶
func (h *ToolHandler) Execute(ctx context.Context, name string, args json.RawMessage) (string, error)
Execute runs a tool by name with the given JSON arguments.
Click to show internal directories.
Click to hide internal directories.