Skip to content

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 types
  • spt-reasoning-storage -- Persistent pattern storage
  • spt-reasoning-learning -- Adaptive learning algorithms
  • spt-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

TypeDescription
McpServerMCP server that hosts reasoning tools and resources
McpConfigServer configuration (port, auth, enabled tools)
McpToolA callable reasoning tool exposed via MCP
McpResourceA reasoning resource exposed via MCP
McpErrorError enum covering tool, resource, storage, learning, and network errors

Released under the MIT License.