Multi-model AI team coordination via MCP — the missing coordination layer for multi-agent, multi-provider AI systems
Project description
Team Table
Multi-model AI team coordination via MCP (Model Context Protocol).
An MCP server that lets multiple AI instances discover each other, coordinate tasks, and communicate through a shared SQLite database.
Quick Start
pip install team-table
For development:
pip install -e ".[dev]"
Register as MCP server in Claude Code
Windows:
claude mcp add --transport stdio --scope user team-table -- \
path/to/.venv/Scripts/python.exe -m team_table.server
macOS/Linux:
claude mcp add --transport stdio --scope user team-table -- \
path/to/.venv/bin/python -m team_table.server
Register as MCP server in Codex
Windows:
codex mcp add --transport stdio --scope user team-table -- \
path/to/.venv/Scripts/python.exe -m team_table.server
macOS/Linux:
codex mcp add --transport stdio --scope user team-table -- \
path/to/.venv/bin/python -m team_table.server
Network Mode (LAN)
Run the server over the network so other machines can connect:
# Start the server in SSE mode (or use streamable-http)
TEAM_TABLE_TRANSPORT=sse python -m team_table.server
From another PC on the LAN, register the remote server:
claude mcp add --transport sse team-table http://<host-ip>:8741/sse
From Codex on another PC on the LAN, register the same remote server:
codex mcp add --transport sse team-table http://<host-ip>:8741/sse
Environment Variables
| Variable | Default | Description |
|---|---|---|
TEAM_TABLE_DB |
~/.team-table/team_table.db |
Path to the SQLite database |
TEAM_TABLE_TRANSPORT |
stdio |
Transport mode: stdio, sse, or streamable-http |
TEAM_TABLE_HOST |
0.0.0.0 |
Bind address for network transports |
TEAM_TABLE_PORT |
8741 |
Listen port for network transports |
TEAM_TABLE_REQUIRE_TOKENS |
true |
Require auth tokens for tool calls and SSE |
Architecture
Each Claude Code instance spawns its own STDIO MCP server process. All processes share one SQLite database (~/.team-table/team_table.db) using WAL mode for concurrent access. Alternatively, a single server can be run in network mode (SSE or streamable-http) to serve multiple clients over the LAN.
Tools (18)
- Registration:
register,deregister,list_members,heartbeat - Messaging:
send_message,get_messages,broadcast,delete_message,archive_message,clear_inbox,purge_messages - Task Board:
create_task,list_tasks,claim_task,update_task - Shared Context:
share_context,get_shared_context - Audit:
get_audit_log
Auth Tokens
register returns a per-agent token. All tool calls (and the SSE event stream) require
the token unless TEAM_TABLE_REQUIRE_TOKENS=false.
Message Management
Messages can be archived (soft-delete + mark read), deleted (soft-delete), or purged (hard-delete, admin/lead only). clear_inbox supports bulk archival with optional date and sender filters. Archived messages are excluded from inbox queries and unread counts by default.
SSE Push Notifications
In network mode, agents can subscribe to real-time events at GET /events/{agent_name}. The server pushes notifications for new messages, broadcasts, and task assignments. A 30-second heartbeat keeps connections alive. The poll daemon remains available as a fallback for STDIO transport.
Audit Log
All state-changing actions (registration, messaging, task updates, context sharing) are recorded in an append-only audit log. Query with get_audit_log using optional agent, action, and date filters.
Security
- Input validation on all tool parameters (agent names, messages, task fields)
- Rate limiting: 30 messages per 60-second window per sender
- Role-based access control:
admin,lead,coder,reviewer,designer,tester,agent - Privileged operations (purge, delete others' messages) restricted to admin/lead roles
Poll Daemon (Auto-Messaging)
By default, agents must manually check for messages. The poll daemon automates this — it monitors an agent's inbox and auto-responds, only escalating to the user when needed.
How It Works
- Polls the database every 30 seconds for unread messages
- Sends an acknowledgement reply to each incoming message
- Escalates to the user (stops auto-replying) when:
- The total auto-reply count exceeds the limit (default: 13)
- A message contains a question or decision request (e.g. "should we…?", "please approve", "what do you think")
- Notifies the sender with an
[AUTO]message explaining the escalation
Usage
# Start polling for an agent (default: 30s interval, 13 message max)
python scripts/poll_daemon.py claude-opus
# Custom interval and message limit
python scripts/poll_daemon.py claude-opus --interval 15 --max-messages 13
# With a custom database path
TEAM_TABLE_DB=/path/to/db python scripts/poll_daemon.py claude-opus
Safety
- Hard message cap prevents runaway agent-to-agent loops
- Question detection forces human review on decisions
- Pull-based — no exposed network endpoints
- Graceful shutdown via Ctrl-C or SIGTERM
- All activity is logged to the terminal with timestamps
Development
pytest # run tests
ruff check . # lint
Recommended Workflow (PyCharm + OAuth)
For day-to-day development, use a JetBrains-first flow:
- Run and debug code/tests in PyCharm.
- Use browser-based OAuth sign-in from PyCharm for provider access.
- Keep
team-tableauth-token enforcement enabled (TEAM_TABLE_REQUIRE_TOKENS=true). - Treat each agent as a distinct identity with its own token and role.
Token guidance for the table process:
- Register each agent once, capture its returned token, and store it in IDE run configs or environment variables.
- Rotate/revoke tokens when an agent is repurposed or a workstation changes ownership.
- Never share one token across multiple agents; tokens are agent-scoped.
Future multi-agent expansion:
- Add agents incrementally (coding, review, QA, design, ops) with explicit roles and capabilities.
- Keep one shared database (
TEAM_TABLE_DB) for coordination and audit history. - Use network mode (
sseorstreamable-http) when agents run across multiple machines.
License
GPL-3.0-or-later
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file team_table-0.2.0.tar.gz.
File metadata
- Download URL: team_table-0.2.0.tar.gz
- Upload date:
- Size: 40.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1fd1bb83818a7af04bea5639d21734efac7d18742152df5605b7a9d4566d26b8
|
|
| MD5 |
e227496d41a03e5c3c922504b10be27d
|
|
| BLAKE2b-256 |
379c1f96447d19518ce266240cd20fb54d14ff1eda118654710f3581eccc317e
|
File details
Details for the file team_table-0.2.0-py3-none-any.whl.
File metadata
- Download URL: team_table-0.2.0-py3-none-any.whl
- Upload date:
- Size: 32.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab4c31c5115d0f59b59914fd7487f69b07b6042d89e29bdbd6d839626e5eb7a0
|
|
| MD5 |
7b8591aee7977166d9571e212f9d21de
|
|
| BLAKE2b-256 |
f7afbb7d1e231bfdfcef5ab6ebee56af9a6e990f4902765704436dabe01b4753
|