MCP Protocol Architecture

How Bootspring implements the Model Context Protocol.

Overview

The Model Context Protocol (MCP) is a standard for AI assistants to interact with external tools and resources. Bootspring implements an MCP server that exposes its functionality to AI clients like Claude.

Protocol Basics

Communication Flow

┌─────────────────┐ ┌─────────────────┐ │ AI Client │◄────────────▶│ MCP Server │ │ (Claude, etc.) │ Messages │ (Bootspring) │ └─────────────────┘ └─────────────────┘

Message Types

TypeDirectionPurpose
initializeClient → ServerEstablish connection
tools/listClient → ServerList available tools
tools/callClient → ServerInvoke a tool
resources/listClient → ServerList available resources
resources/readClient → ServerRead a resource

Bootspring MCP Server

Server Implementation

Loading code block...

Tool System

Tool Definition

Loading code block...

Registered Tools

ToolDescription
bootspring_assistNatural language assistant
bootspring_contextGet project context
bootspring_agentInvoke expert agents
bootspring_skillDiscover and apply skills
bootspring_todoManage todos
bootspring_generateRegenerate context
bootspring_workflowWorkflow operations
bootspring_qualityQuality gates
bootspring_prdPRD management
bootspring_loopDevelopment loops
bootspring_seedSeed operations
bootspring_mvpMVP generation
bootspring_memoryAccess memory
bootspring_dashboardDashboard control
bootspring_configConfiguration
bootspring_analyzeCode analysis
bootspring_feedbackSend feedback
bootspring_statusCheck status
bootspring_orchestratorOrchestrate workflows

Tool Implementation Example

Loading code block...

Resource System

Resource Definition

Loading code block...

Registered Resources

URIDescription
project://contextProject context (CLAUDE.md)
project://configBootspring configuration
project://prdProduct Requirements
project://todosTodo list

Resource Implementation

Loading code block...

Transport Layer

Stdio Transport

For Claude Desktop integration:

Loading code block...

Communication via stdin/stdout with JSON-RPC messages.

HTTP Transport

For web integrations:

Loading code block...

RESTful API with WebSocket support for streaming.

Message Format

JSON-RPC 2.0

All MCP messages use JSON-RPC 2.0:

Loading code block...

Streaming Responses

For long operations:

Loading code block...

Authentication

Session Authentication

Loading code block...

API Key Validation

Tools validate API keys for cloud operations:

Loading code block...

Error Handling

MCP Error Codes

CodeMeaning
-32700Parse error
-32600Invalid request
-32601Method not found
-32602Invalid params
-32603Internal error

Bootspring Errors

CodeMeaning
1001Agent not found
1002Skill not found
1003Authentication required
1004Rate limit exceeded
1005Entitlement required

Client Configuration

Claude Desktop

Loading code block...

VS Code

Loading code block...

Debugging

Enable Debug Logging

Loading code block...

Log Output

mcp:server Received: tools/list mcp:server Responding with 19 tools mcp:server Received: tools/call bootspring_agent mcp:tools Invoking agent: frontend-expert mcp:tools Agent completed in 2340ms mcp:server Responding with result

Performance

Connection Pooling

MCP server maintains connection pools:

Loading code block...

Response Caching

Cacheable responses are stored:

Loading code block...

Security

Input Validation

All tool inputs validated against schemas:

Loading code block...

Sandboxing

Tool execution is sandboxed:

  • File access limited to project directory
  • Network access controlled
  • Resource limits enforced