Townhall MCP Server
Tinytown includes an MCP server in the townhall binary for LLM/tooling integrations.
Start MCP
# MCP over stdio (for local MCP clients)
townhall mcp-stdio
# MCP over HTTP/SSE
townhall mcp-http
# Override bind/port (default port = rest_port + 1)
townhall mcp-http --bind 127.0.0.1 --port 8081
Registered MCP Tools
Read tools:
town.get_statusagent.listagent.inboxtask.list_pendingbacklog.list
Write tools:
task.assignmessage.sendbacklog.addbacklog.claimbacklog.assign_allbacklog.remove
Agent-management/recovery tools:
agent.spawnagent.killagent.restartagent.prunerecovery.recover_agentsrecovery.reclaim_tasks
Tool responses are JSON payloads wrapped as:
{
"success": true,
"data": {},
"error": null
}
Registered MCP Resources
Static resources:
tinytown://town/currenttinytown://agentstinytown://backlog
Resource templates:
tinytown://agents/{agent_name}tinytown://tasks/{task_id}
Registered MCP Prompts
conductor.startup_contextagent.role_hint(agent_namerequired,tagsoptional)
Notes
- MCP tools call the same Tinytown service layer used by CLI and REST.
mcp-httpuses Tower MCP’s HTTP/SSE transport and follows standard MCP message semantics.