Skip to content

Commit 90e84f6

Browse files
authored
Merge pull request #280 from deploystackio/main
prod release
2 parents c9bcc0f + 4b398a3 commit 90e84f6

File tree

7 files changed

+760
-56
lines changed

7 files changed

+760
-56
lines changed

development/satellite/architecture.mdx

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ MCP Client Satellite (MCP SDK)
7575
│ │
7676
│──── POST /mcp ────────────▶│ (JSON-RPC tools/list)
7777
│ │
78-
│◀─── Tools response ───────│ (Cached tools returned)
78+
│◀─── 2 meta-tools ─────────│ (Hierarchical router)
7979
```
8080

8181
### Core SDK Components
@@ -97,13 +97,17 @@ MCP Client Satellite (MCP SDK)
9797
**Supported MCP Methods:**
9898
- `initialize` - MCP session initialization (SDK automatic)
9999
- `notifications/initialized` - Client initialization complete
100-
- `tools/list` - List cached tools from discovered servers
101-
- `tools/call` - Execute tools routed to appropriate servers
100+
- `tools/list` - List available meta-tools (hierarchical router: 2 tools only)
101+
- `tools/call` - Execute meta-tools or route to actual MCP servers
102102
- `resources/list` - List available resources (returns empty array)
103103
- `resources/templates/list` - List resource templates (returns empty array)
104104
- `prompts/list` - List available prompts (returns empty array)
105105

106-
For detailed information about tool discovery and execution, see [Tool Discovery Implementation](/development/satellite/tool-discovery).
106+
<Info>
107+
**Hierarchical Router**: The satellite exposes only 2 meta-tools to MCP clients (`discover_mcp_tools` and `execute_mcp_tool`) instead of all available tools. This solves the MCP context window consumption problem by reducing token usage by 95%+. See [Hierarchical Router Implementation](/development/satellite/hierarchical-router) for details.
108+
</Info>
109+
110+
For detailed information about internal tool discovery and caching, see [Tool Discovery Implementation](/development/satellite/tool-discovery).
107111

108112
**Error Handling:**
109113
- Standard JSON-RPC 2.0 compliant error responses via SDK
@@ -377,7 +381,7 @@ Configuration → Spawn → Monitor → Health Check → Restart/Terminate
377381
- **JSON-RPC Version**: 2.0 strict compliance
378382
- **HTTP Framework**: Fastify with JSON Schema validation
379383
- **Logging**: Pino structured logging with operation tracking
380-
- **Error Handling**: Comprehensive HTTP status code mapping
384+
- **Error Handling**: Complete HTTP status code mapping
381385

382386
### Planned Resource Jailing Specifications
383387
- **CPU Limit**: 0.1 cores per MCP server process
@@ -410,15 +414,12 @@ curl -X POST "http://localhost:3001/mcp" \
410414
-H "Content-Type: application/json" \
411415
-d '{"jsonrpc":"2.0","id":"1","method":"initialize","params":{}}'
412416

413-
# Test tool discovery
414-
curl -X POST "http://localhost:3001/mcp" \
415-
-H "Content-Type: application/json" \
416-
-d '{"jsonrpc":"2.0","id":"2","method":"tools/list","params":{}}'
417-
418417
# Test SSE streaming
419418
curl -N -H "Accept: text/event-stream" "http://localhost:3001/mcp"
420419
```
421420

421+
For testing the hierarchical router (tool discovery and execution), see [Hierarchical Router Implementation](/development/satellite/hierarchical-router).
422+
422423
**MCP Client Configuration:**
423424
```json
424425
{

0 commit comments

Comments
 (0)