Documentation
¶
Index ¶
- func WriteNotification(w io.Writer, n Notification) error
- func WriteResponse(w io.Writer, resp Response) error
- type APIClient
- func (c *APIClient) AddMemory(ctx context.Context, hiveshareID string, entry map[string]interface{}) (map[string]interface{}, error)
- func (c *APIClient) GetContext(ctx context.Context, hiveshareID, sourceRef string) (interface{}, error)
- func (c *APIClient) GetMetrics(ctx context.Context, hiveshareID string) (interface{}, error)
- func (c *APIClient) ListHeadspaces(ctx context.Context) ([]map[string]interface{}, error)
- func (c *APIClient) SearchMemory(ctx context.Context, hiveshareID, query, sourceType string, limit int) (map[string]interface{}, error)
- type InputSchema
- type Notification
- type Property
- type RPCError
- type Request
- type Response
- type Server
- type Tool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteNotification ¶
func WriteNotification(w io.Writer, n Notification) error
Types ¶
type APIClient ¶
APIClient is a thin HTTP client for the hiveshare API, used by the MCP server to proxy tool calls.
func NewAPIClient ¶
func (*APIClient) GetContext ¶
func (*APIClient) GetMetrics ¶
func (*APIClient) ListHeadspaces ¶
type InputSchema ¶
type Notification ¶
type Request ¶
type Request struct {
JSONRPC string `json:"jsonrpc"`
ID interface{} `json:"id"`
Method string `json:"method"`
Params json.RawMessage `json:"params,omitempty"`
}
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is the MCP stdio server.
type Tool ¶
type Tool struct {
Name string `json:"name"`
Description string `json:"description"`
InputSchema InputSchema `json:"inputSchema"`
}
Tool definition for MCP initialize response
Click to show internal directories.
Click to hide internal directories.