spt-reasoning-mcp
MCP server implementation with reasoning tools and resources
Overview
Exposes the ReasoningBank system as an MCP (Model Context Protocol) server, making reasoning patterns, learning insights, and network capabilities available as tools and resources for AI agents. Acts as the integration layer that connects all other reasoning crates to external consumers.
Key Features
- MCP Server -- Full MCP server with configurable tools and resources
- Tool Registry -- Register reasoning operations as callable MCP tools
- Resource Exposure -- Expose patterns and insights as MCP resources
- Unified Error Handling -- Aggregates errors from storage, learning, and network layers
Dependencies
Key internal dependencies:
spt-reasoning-core-- Core pattern and reasoning typesspt-reasoning-storage-- Persistent pattern storagespt-reasoning-learning-- Adaptive learning algorithmsspt-reasoning-network-- Network transport for distributed reasoning
Usage
rust
use spt_reasoning_mcp::{McpServer, McpConfig, McpTool, McpResource};
let config = McpConfig::default();
let server = McpServer::new(config);API Reference
Core Types
| Type | Description |
|---|---|
McpServer | MCP server that hosts reasoning tools and resources |
McpConfig | Server configuration (port, auth, enabled tools) |
McpTool | A callable reasoning tool exposed via MCP |
McpResource | A reasoning resource exposed via MCP |
McpError | Error enum covering tool, resource, storage, learning, and network errors |