TOMAPE
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@TOMAPEsubmit_task: explain context compaction benefits in 100 words, budget 5000 tokens, economy profile"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
TOMAPE
Token-optimized multi-agent orchestration exposed as an MCP server. TOMAPE owns session state, compacts context between agent hops, routes work to smaller models when safe, and reports estimated token savings.
Features
Session-owning orchestrator — clients send tasks, not full transcripts
Context compaction — structured handoff state between planner/worker/reviewer hops
Dynamic routing — rule-based small/large model selection with escalation
Token metrics — per-hop breakdown and estimated baseline savings
Dual transport — stdio (Cursor/Claude Desktop) and HTTP (hosted teams)
API key auth — Bearer token authentication for HTTP mode
Related MCP server: AgentCost
Quick Start
Prerequisites
Python 3.11+
uv (recommended)
Install
cd TOMAPE
uv sync --extra dev
cp .env.example .env
tomape init-dbRun (stdio — for Cursor)
TOMAPE_MOCK_LLM=1 tomape serve --transport stdioRun (HTTP — hosted)
TOMAPE_MOCK_LLM=1 tomape serve --transport http --port 8080Health check: GET http://localhost:8080/health
Cursor MCP Config
{
"mcpServers": {
"tomape": {
"command": "uv",
"args": ["run", "tomape", "serve", "--transport", "stdio"],
"env": {
"ANTHROPIC_API_KEY": "your-key",
"TOMAPE_MOCK_LLM": "0"
}
}
}
}MCP Tools
Tool | Description |
| Start a session ( |
| Follow-up without resending history |
| Poll running/completed/failed status |
| Final output + |
| Abort a session |
| Token metrics and savings |
Example prompts (in Cursor)
Use TOMAPE submit_task: summarize the benefits of context compaction. Budget 5000 tokens. Profile economy.Use TOMAPE get_result for session sess_abc123HTTP API
Authenticate with Authorization: Bearer <api-key>.
# List tools
curl -H "Authorization: Bearer dev-key-change-me" http://localhost:8080/tools
# Submit task
curl -X POST http://localhost:8080/tools/call \
-H "Authorization: Bearer dev-key-change-me" \
-H "Content-Type: application/json" \
-d '{"name":"submit_task","arguments":{"task":"Classify these items: apple, car, dog","profile":"economy"}}'Docker
cd docker
TOMAPE_API_KEYS=dev-key-change-me docker compose up --buildConfiguration
Environment: see
.env.examplePolicies:
config/default.yaml
Profiles
Profile | Behavior |
| Small models, aggressive compaction |
| Small default, escalate on failure |
| Large models, light compaction |
Development
uv run pytest
uv run ruff check tomape testsSet TOMAPE_MOCK_LLM=1 to run without API keys.
Architecture
Client → MCP (stdio/HTTP) → Orchestrator → Router → LLM
↓
Compaction → Session Store → MetricsInternal agents: Planner → Worker (per step) → Reviewer
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/sudharsanbabu83/TOMAPE'
If you have feedback or need assistance with the MCP directory API, please join our Discord server