Expand description
MCP server implementation.
Provides Model Context Protocol server for AI agent interoperability.
§Features
- Tools:
subcog_capture,subcog_recall,subcog_status,subcog_namespaces - Resources: Help documentation via
subcog://help/{category} - Prompts: Tutorial, capture assistant, decision documentation
§Usage
§Stdio Transport (Claude Desktop)
subcog serve§Claude Desktop Configuration
{
"mcpServers": {
"subcog": {
"command": "subcog",
"args": ["serve"]
}
}
}Modules§
- auth 🔒
- JWT authentication for MCP HTTP transport (SEC-H1).
- dispatch 🔒
- MCP method dispatch using command pattern.
- help_
content 🔒 - Help content for MCP resources.
- prompt_
understanding 🔒 - Guidance content for the
prompt_understandingtool. - prompts 🔒
- MCP pre-defined prompts.
- resources 🔒
- MCP resource handlers.
- server 🔒
- MCP server setup and lifecycle.
- session 🔒
- Session state tracking for MCP clients.
- tool_
types 🔒 - Argument types and helper functions for MCP tools.
- tools 🔒
- MCP tool implementations.
Structs§
- Claims
- JWT claims structure.
- Help
Category - Help category definition.
- JwtAuthenticator
- JWT authenticator for validating bearer tokens.
- JwtConfig
- JWT authentication configuration.
- McpServer
- MCP server for subcog.
- Prompt
Argument - Argument for a prompt.
- Prompt
Definition - Definition of an MCP prompt.
- Prompt
Message - A message in a prompt.
- Prompt
Registry - Registry of pre-defined prompts.
- Resource
Content - Content of an MCP resource.
- Resource
Definition - Definition of an MCP resource.
- Resource
Handler - Handler for MCP resources (URN scheme).
- Tool
Definition - Definition of an MCP tool.
- Tool
Registry - Registry of MCP tools.
- Tool
Result - Result of a tool execution.
Enums§
- Prompt
Content - Content of a prompt message.
- Tool
Content - Content types that can be returned by tools.
- Transport
- Transport type for the MCP server.