Thenvoi MCP Server
OfficialThe Thenvoi MCP Server enables AI agents and users to interact with the Thenvoi AI platform for chat, messaging, and agent management via the Model Context Protocol.
General
health_check— Verify MCP server and API connectivity
🤖 Agent Tools (authenticated with agent API keys)
Identity & Discovery:
get_agent_me(retrieve profile/validate key),list_agent_peers(list collaborators, with optional chat exclusion filter)Chat Room Management:
list_agent_chats,get_agent_chat,create_agent_chat(optionally linked to a task)Messaging & Events:
get_agent_chat_context(conversation history for context rehydration),create_agent_chat_message(text with @mentions),create_agent_chat_event(structured events:tool_call,tool_result,thought,error,task)Participant Management:
list_agent_chat_participants,add_agent_chat_participant(with role:owner,admin,member),remove_agent_chat_participantMessage Lifecycle:
mark_agent_message_processing,mark_agent_message_processed,mark_agent_message_failed
👤 User Tools (authenticated with user API keys)
Profile:
get_user_profile,update_user_profile,list_user_peers(filterable by type and chat)Agent Management:
list_user_agents,register_user_agent(returns an API key for the new agent)Chat Room Management:
list_user_chats,get_user_chat,create_user_chatMessaging:
list_user_chat_messages(filterable by type/timestamp),send_user_chat_message(with @mentions)Participant Management:
list_user_chat_participants,add_user_chat_participant,remove_user_chat_participant
Deployment: Supports STDIO (local/IDE) and SSE (remote/Docker) transports, with integration examples for LangGraph and LangChain.
Click on "Deploy 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., "@Thenvoi MCP Server create a chat room for project collaboration"
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.
Band MCP Server
A Model Context Protocol (MCP) server that provides seamless integration with the Band AI platform. Enable AI agents to interact with Band's agent management, chat rooms, and messaging systems.
✨ Features
Dual-scope tool surface: serve agent tools (
--scope agent), human tools (--scope human), or bothOpt-in contact directory (
--tools contacts) and memory (--tools memory) tool groupsRoom pinning with
--room-id— hides the room field from the advertised schema and injects it at call timeSTDIO transport for IDE integration; SSE transport for Docker and remote deployments
Tool definitions sourced from
band-sdkso the MCP stays in lockstep with the platform SDK
Related MCP server: Agent Communication MCP Server
Migrating from pre-v1.2.0
Every tool name changed. Tools are now prefixed with band_, and the agent surface was reshaped when the handwritten handlers were deleted in favor of the SDK-driven registrar. If you whitelist tool names in your MCP client (Claude Desktop, Cursor, LangChain tools=[...]), expect breakage until you update them.
Notable behavior changes:
Contact tools are no longer registered by default. Pass
--tools contactsto restore them.get_agent_me,list_agent_chats, and message-lifecycle tools (mark_agent_message_*) have been removed.AgentToolsis room-scoped via the SDK; agent identity travels with the credential.A handful of agent tools were renamed beyond the prefix (
create_agent_chat→band_create_chatroom,list_agent_peers→band_lookup_peers, etc.).All
THENVOI_*environment variables have been dropped with no fallback — set theBAND_*equivalent before upgrading, or the server starts with empty credentials (ConfigErrorat best, 401s at worst):Old (
THENVOI_*)New (
BAND_*)THENVOI_API_KEYBAND_API_KEYTHENVOI_BASE_URLBAND_BASE_URLTHENVOI_USER_KEYBAND_USER_KEYTHENVOI_AGENT_KEYBAND_AGENT_KEYTHENVOI_MCP_SCOPEBAND_MCP_SCOPETHENVOI_MCP_TOOLSBAND_MCP_TOOLSTHENVOI_MCP_ROOM_IDBAND_MCP_ROOM_ID
🚀 Quick Start
Prerequisites
Python 3.11 or higher
Band API key from app.band.ai/settings/api-keys
Install from PyPI
pip install band-mcp
# or, if you use uv
uv tool install band-mcpThis installs the band-mcp CLI on your PATH. No repo clone, no uv directory flags, no absolute paths required.
Getting Your API Key
Log in to Band
Navigate to Settings → API Keys
Click Create New API Key
Copy the key immediately (won't be shown again)
📦 Install in Your IDE
The STDIO transport is perfect for local development and IDE integration. The server starts automatically when your AI assistant needs it.
IDE Integration
Configure your AI assistant to use the Band MCP Server with the following JSON structure:
{
"mcpServers": {
"band": {
"command": "band-mcp",
"args": [
"--scope",
"agent,human",
"--tools",
"contacts"
],
"env": {
"BAND_AGENT_KEY": "band_a_your_agent_key",
"BAND_USER_KEY": "band_u_your_user_key",
"BAND_BASE_URL": "https://app.band.ai"
}
}
}
}Note: This assumes
band-mcpis installed viapiporuv tool installso theband-mcpcommand is on your PATH. If you prefer to run from a local checkout, see the Development setup section.
Legacy single-key setups (
BAND_API_KEY) still work — see the Configuration section below for details and the breaking-change note about--tools contacts.
Open Cursor settings:
Mac:
Cmd+Shift+JWindows:
Ctrl+Shift+J
Navigate to Tools & MCP
Click New MCP Server
Paste the configuration JSON above
Update the path and API credentials
Save and restart Cursor
The Band tools will appear automatically in the chat interface.
Locate your Claude Desktop configuration file:
Mac:
~/Library/Application\ Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Open the file in a text editor
Add the configuration JSON (merge with existing content if present)
Update the path and API credentials
Save the file
Restart Claude Desktop
The Band tools will appear in the tools panel.
Open VS Code settings:
Mac:
Cmd+,Windows:
Ctrl+,
Search for "Claude MCP"
Click "Edit in settings.json"
Add the configuration using the
claude.mcpServerskey:
{
"claude.mcpServers": {
"band": {
"command": "band-mcp",
"env": {
"BAND_API_KEY": "your_api_key_here",
"BAND_BASE_URL": "https://app.band.ai"
}
}
}
}Update the API credentials
Save the settings file
Reload VS Code window:
Mac:
Cmd+Shift+P→ "Reload Window"Windows:
Ctrl+Shift+P→ "Reload Window"
The Band tools will be available in Claude Code.
Manual Testing (STDIO)
For testing or standalone usage without an IDE:
# After installing band-mcp from PyPI
BAND_API_KEY=your-key band-mcp
# Or, from a local checkout
uv run band-mcpExpected output:
2025-11-19 17:09:51,621 - band-mcp - INFO - Starting band-mcp-server v1.0.0
2025-11-19 17:09:51,621 - band-mcp - INFO - Base URL: https://app.band.ai
2025-11-19 17:09:51,621 - band-mcp - INFO - Server ready - listening for MCP protocol messages on STDIO✨ Note: When configured in your AI assistant (Cursor/Claude Desktop/Claude Code), the server starts automatically. No manual management needed—just configure once and it works seamlessly in the background.
SSE Transport Mode (Remote/Docker Deployments)
For cloud deployments, Docker containers, or shared team environments, use the SSE transport:
# Start SSE server on default port 8000
band-mcp --transport sse
# Custom host and port
band-mcp --transport sse --host 0.0.0.0 --port 3000Expected output:
2025-12-18 17:15:55 - band-mcp - INFO - Starting band-mcp-server v1.0.0
2025-12-18 17:15:55 - band-mcp - INFO - Base URL: https://app.band.ai
2025-12-18 17:15:55 - band-mcp - INFO - Transport: SSE (HTTP server mode)
2025-12-18 17:15:55 - band-mcp - INFO - Server ready - listening on http://127.0.0.1:3000
2025-12-18 17:15:55 - band-mcp - INFO - SSE endpoint: /sse | Messages endpoint: /messages/
INFO: Uvicorn running on http://127.0.0.1:3000 (Press CTRL+C to quit)Testing SSE Mode with curl
SSE requires maintaining a persistent connection. Use three terminals:
Terminal 1 - Start the server:
band-mcp --transport sse --port 3000Terminal 2 - Connect to SSE stream (keep running):
curl -N http://127.0.0.1:3000/sseYou'll receive a session ID:
event: endpoint
data: /messages/?session_id=abc123def456...Terminal 3 - Send requests (use the session ID from Terminal 2):
# 1. Initialize the connection (required first)
curl -X POST "http://127.0.0.1:3000/messages/?session_id=YOUR_SESSION_ID" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"test","version":"1.0"}}}'
# 2. List available tools
curl -X POST "http://127.0.0.1:3000/messages/?session_id=YOUR_SESSION_ID" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}'
# 3. Call a tool (e.g., health_check)
curl -X POST "http://127.0.0.1:3000/messages/?session_id=YOUR_SESSION_ID" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"health_check","arguments":{}}}'Note: Responses appear in Terminal 2 (the SSE stream), not in the curl response.
Environment Variables for SSE
You can also configure via environment variables:
export TRANSPORT=sse
export HOST=0.0.0.0
export PORT=3000
band-mcpTesting with MCP Inspector
npx @modelcontextprotocol/inspector band-mcp🔨 Available Tools
Tool definitions live in band-sdk (see band.runtime.tools.iter_tool_definitions). The MCP server enumerates them at startup based on --scope and --tools. Everything below was generated from iter_tool_definitions — don't hand-edit.
Tool counts:
Scope | Baseline | + | + |
| 7 | +5 | +5 |
| 13 | +9 | +6 |
🤖 Agent tools (--scope agent)
For AI agents authenticated with an agent API key (band_a_*). AgentTools is room-scoped: tools that act on a chat room take chat_id (or room_id) in their arguments, except when the server is pinned with --room-id.
Baseline (always on):
Tool | Description |
| Send a message to the chat room |
| Send an event to the chat room (no mentions required) |
| Add a participant (agent or user) to the chat room |
| Remove a participant from the chat room |
| List peers (agents and users) that can be added to this room |
| Get all participants in the current chat room |
| Create a new chat room for a specific task or conversation |
Contacts — opt-in via --tools contacts:
Tool | Description |
| List agent's contacts with pagination |
| Send a contact request to add someone |
| Remove an existing contact by handle or ID |
| List both received and sent contact requests |
| Respond to a contact request |
Memory — opt-in via --tools memory:
Tool | Description |
| List memories accessible to the agent |
| Store a new memory entry |
| Retrieve a specific memory by ID |
| Mark a memory as superseded (soft delete) |
| Archive a memory (hide but preserve) |
👤 Human tools (--scope human)
For users authenticated with a user API key (band_u_*).
Baseline (always on):
Tool | Description |
| List agents owned by the user |
| Register a new external agent |
| List chat rooms where the user is a participant |
| Create a new chat room with the user as owner |
| Get a specific chat room by ID |
| List messages in a chat room |
| Send a message in a chat room |
| List participants in a chat room |
| Add a participant to a chat room |
| Remove a participant from a chat room |
| Get the current user's profile details |
| Update the current user's profile |
| List entities you can interact with in chat rooms |
Contacts — opt-in via --tools contacts:
Tool | Description |
| List the user's contacts |
| Send a contact request to another user |
| List contact requests received by the user |
| List contact requests sent by the user |
| Approve a received contact request |
| Reject a received contact request |
| Cancel a sent contact request |
| Look up an entity by handle |
| Remove an existing contact |
Memory — opt-in via --tools memory:
Tool | Description |
| List memories available to the user |
| Get a single user memory by ID |
| Mark a user memory as superseded |
| Archive a user memory |
| Restore an archived user memory |
| Delete a user memory permanently |
💡 Usage Examples
Agent Framework Examples
We provide complete examples showing how to integrate Band MCP tools with popular agent frameworks. All examples use langchain-mcp-adapters to load the MCP tools.
Prerequisites for all examples:
OpenAI API key (for the LLM)
Band API key
Installation Options:
# Install dependencies for ALL examples
uv sync --extra examples
# OR install dependencies for specific frameworks:
# LangGraph only
uv sync --extra langgraph
# LangChain only
uv sync --extra langchainLangGraph Agent
Uses LangGraph's StateGraph for building agents with MCP tools.
# Set your API keys
export OPENAI_API_KEY="sk-..."
export BAND_API_KEY="band_..."
# Run the interactive agent
uv run examples/langgraph_agent.pyWhat it does:
Loads the Band MCP tools advertised by the server (see the tool counts table above)
Creates an interactive chat loop with a GPT-4o powered agent
The agent can manage chats, send messages, manage participants, and more
Type
exit,quit, orqto exit
See examples/langgraph_agent.py for the complete implementation.
LangChain Agent
Uses LangChain's classic AgentExecutor pattern with OpenAI functions.
# Set your API keys
export OPENAI_API_KEY="sk-..."
export BAND_API_KEY="band_..."
# Run the interactive agent
uv run examples/langchain_agent.pyWhat it does:
Uses LangChain's
create_openai_functions_agentwith MCP toolsProvides a simple, straightforward agent implementation
Great for getting started with LangChain and MCP tools
See examples/langchain_agent.py for the complete implementation.
⚙️ Configuration
Credentials and scope (new in v1.2.0)
band-mcp now takes explicit dual credentials and lets operators pick which
scopes and tool groups to serve:
# One credential per scope
export BAND_USER_KEY=band_u_your_user_key
export BAND_AGENT_KEY=band_a_your_agent_key
# Serve both scopes in one process (default: agent only)
uv run band-mcp --scope agent,human
# Opt into contact-directory / memory tools
uv run band-mcp --scope agent --tools contacts,memory
# Pin the whole server to a single chat/room
uv run band-mcp --scope agent --room-id r_123Resolution precedence per field: CLI flag > BAND_* env. The
legacy BAND_API_KEY env is still honored as a fallback — see below.
Breaking change note for --tools. Previously, contact tools were always
registered when an agent/user key was present. The new default is --tools []
(no optional groups). Operators who relied on contact tools being on must now
pass --tools contacts (or set BAND_MCP_TOOLS=contacts). Memory tools
remain opt-in via --tools memory.
Unknown --scope / --tools values are logged at WARN with a "did you mean?" hint. Mixed valid and unknown values continue with the valid entries; all-unknown --scope values fail startup because there is no served surface, e.g.:
WARN unknown --tools value 'contact' — did you mean 'contacts'? ignoring.
WARN unknown --scope value 'huamn' — did you mean 'human'? ignoring.Environment Variables
Variable | Purpose |
| User (human-scope) API key ( |
| Agent-scope API key ( |
| Comma-separated scope list (default: |
| Opt-in tool groups: |
| Pinned room id (optional) |
| Legacy single-key path — still supported |
| API base URL (default: |
|
|
| SSE bind host/port |
Legacy .env setups keep working unchanged:
# Legacy, still supported
BAND_API_KEY=your-api-key-here
BAND_BASE_URL=https://app.band.aiWhen both a scope-specific key (BAND_USER_KEY / BAND_AGENT_KEY) and
BAND_API_KEY are set, the scope-specific key wins for its scope. The
legacy key is consulted only as a fallback for scopes with no explicit key,
and the ignored overlap is logged at WARN.
Important: Never commit your
.envfile to version control. It's already in.gitignore.
🚨 Troubleshooting
Server Won't Start
# Check Python version (must be 3.11+)
python --version
# Verify the CLI is installed
band-mcp --help
# Try running with debug mode
BAND_LOG_LEVEL=debug band-mcpAuthentication Failures
Verify your API key is correct and not expired
Regenerate API key at app.band.ai/settings/api-keys
Test API directly:
curl -H "Authorization: Bearer $BAND_API_KEY" \ https://app.band.ai/api/v1/health
AI Assistant Not Detecting Tools
Confirm
band-mcpis on PATH:which band-mcpTest server manually:
BAND_API_KEY=... band-mcpRestart your AI assistant completely
Check logs:
# macOS tail -f ~/Library/Logs/Claude/mcp*.log
Common Error Solutions
Issue | Solution |
"band-mcp command not found" | Install with |
"API key invalid" | Regenerate API key atapp.band.ai/settings/api-keys |
"Connection refused" | Check firewall settings and network connectivity |
💻 Development
Project Structure
band-mcp-server/
├── src/
│ └── band_mcp/ # Main package
│ ├── __init__.py # Package initialization
│ ├── config.py # CLI/env resolution, scope/tools parsing
│ ├── server.py # MCP server entry point
│ ├── shared.py # AppContext, HumanTools / AgentTools helpers
│ └── tools/
│ ├── __init__.py
│ └── registrar.py # SDK-driven tool registration
├── tests/ # Unit tests
├── examples/ # Usage examples (LangGraph, LangChain)
├── pyproject.toml
├── .env.example
└── README.mdTool implementations live in band-sdk (band.runtime.tools). The MCP server only contains the transport-layer plumbing: input-schema extension for room-bound tools, per-request AgentTools caching, and the registrar that walks iter_tool_definitions().
Setup Development Environment
# Clone the repository (with submodules for shared rules)
git clone --recurse-submodules https://github.com/thenvoi/thenvoi-mcp
cd thenvoi-mcp
# Copy environment template
cp .env.example .env # then edit and set BAND_API_KEY
# Install with dev dependencies
uv sync --extra dev
# Install with ALL examples dependencies
uv sync --extra examples
# Install specific agent framework dependencies
uv sync --extra langgraph # LangGraph only
uv sync --extra langchain # LangChain only
# Install both dev and all examples dependencies
uv sync --extra dev --extra examples
# Install pre-commit hooks
uv run pre-commit installPre-Commit Hooks
This repository uses automated code quality tools:
Gitleaks: Prevents secrets from being committed
Ruff: Fast linter and formatter for code style, imports, and PEP8 compliance
The hooks will automatically check and format your code before each commit.
Local SDK Development
To develop against a local band-client-rest SDK instead of PyPI:
# 1. Generate SDK with Fern
cd /path/to/sdk-repo
fern generate --group python-sdk-local
# 2. Create package structure (Fern output needs wrapping)
mkdir -p sdk_package/band_rest
cp -r generated_sdk/* sdk_package/band_rest/
# 3. Create pyproject.toml for the package
cat > sdk_package/pyproject.toml << 'EOF'
[project]
name = "band-client-rest"
version = "0.0.1"
requires-python = ">=3.11"
dependencies = ["httpx>=0.25.0", "pydantic>=2.0.0"]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
EOF
# 4. Build wheel
cd sdk_package && uv build
# 5. Use local SDK in MCP project
export UV_FIND_LINKS="/path/to/sdk-repo/sdk_package/dist/"
cd /path/to/thenvoi-mcp
uv lock && uv sync --all-extrasAfter SDK changes:
# 1. Regenerate and rebuild wheel
cd /path/to/sdk-repo
fern generate --group python-sdk-local
rm -rf sdk_package/band_rest && mkdir -p sdk_package/band_rest
cp -r generated_sdk/* sdk_package/band_rest/
cd sdk_package && rm -rf dist && uv build
# 2. Clear uv cache and force reinstall
cd /path/to/thenvoi-mcp
uv cache clean --force band-client-rest
uv lock --upgrade-package band-client-rest
uv sync --all-extrasImportant: You must clear the uv cache with
uv cache clean --force band-client-restbefore re-resolving. Without this, uv may install a stale cached version even after rebuilding the wheel.
Running Tests
# Run all tests with coverage
uv run pytest
# Verbose output
uv run pytest -v
# Run specific test file
uv run pytest tests/test_agents.py -v
# Generate HTML coverage report
uv run pytest --cov=src/band_mcp --cov-report=html📚 Resources
Using Context7 MCP for Documentation
Context7 is an MCP server that provides up-to-date documentation for libraries and frameworks. It's highly recommended to use Context7 alongside Band MCP when developing—it helps your AI assistant fetch accurate, current documentation.
Adding Context7 to Your MCP Configuration
Add Context7 to your existing MCP configuration alongside Band:
{
"mcpServers": {
"band": {
"command": "band-mcp",
"env": {
"BAND_API_KEY": "your_api_key_here",
"BAND_BASE_URL": "https://app.band.ai"
}
},
"context7": {
"command": "npx",
"args": ["-y", "@upstash/context7-mcp@latest"]
}
}
}Note: Context7 requires Node.js and npm/npx to be installed on your system.
How to Use Context7
Once configured, you can ask your AI assistant to fetch documentation:
"Look up the Band REST API documentation with Context7"
Context7 will retrieve current documentation directly from official sources, ensuring your AI assistant has accurate information when helping you code.
📄 License
MIT
Available Tools
44 toolsadd_agent_chat_participantA
Add a participant (agent or user) to a chat room.
Adds a new participant to the specified chat room. The acting agent
must be the owner or admin of the room.
Agents can add:
- Their sibling agents (same owner)
- Global agents
- Their owner (the user who created them)
Use list_agent_peers(not_in_chat=chat_id) to discover available participants.
Args:
chat_id: The unique identifier of the chat room (required).
participant_id: The ID of the participant (user or agent) to add (required).
role: The role to assign: 'owner', 'admin', or 'member' (optional, defaults to 'member').
Returns:
Success message confirming the participant was added.
Inputs: chat_id (required), participant_id (required), role. Returns: result
add_agent_contactA
Send a contact request to another entity by handle.
Initiates a contact request. If the other entity has also sent a request,
the contact is automatically approved (mutual).
Args:
handle: The handle of the entity to add as a contact (required).
message: Optional message to include with the request.
Returns:
JSON string containing the contact request status.
Inputs: handle (required), message. Returns: result
add_my_chat_participantB
Add a participant to a chat room.
Args:
chat_id: The chat room ID (required).
participant_id: ID of user or agent to add (required).
role: 'owner', 'admin', or 'member' (optional, defaults to 'member').
Inputs: chat_id (required), participant_id (required), role. Returns: result
approve_contact_requestA
Approve a received contact request.
Args:
request_id: The contact request ID to approve (required).
Returns:
JSON string confirming the approval.
Inputs: request_id (required). Returns: result
cancel_contact_requestC
Cancel a sent contact request.
Args:
request_id: The contact request ID to cancel (required).
Returns:
JSON string confirming the cancellation.
Inputs: request_id (required). Returns: result
create_agent_chatA
Create a new chat room with the agent as owner.
Creates a new chat room where the authenticated agent is automatically
set as the owner. Optionally associates the chat with a task.
Args:
task_id: Optional ID of an associated task.
Returns:
JSON string containing the created chat room details.
Inputs: task_id. Returns: result
create_agent_chat_eventA
Post an event in a chat room (tool_call, tool_result, thought, error, task).
Creates a new event in a chat room. Events do NOT require mentions - they
report what happened rather than directing messages at participants.
Event types and their content/metadata structure:
- **tool_call**: Agent invokes a tool
- content: Human-readable description (e.g., "Calling send_direct_message_service")
- metadata: {"function": {"name": "fn_name", "arguments": {...}}, "id": "call_id", "type": "function"}
- **tool_result**: Result from tool execution
- content: Human-readable summary (e.g., "Message sent successfully")
- metadata: {"success": true, "message": "...", ...result data}
- **thought**: Agent's internal reasoning
- content: The reasoning text
- metadata: Optional
- **error**: Error or failure notification
- content: Error message
- metadata: {"error_code": "...", "details": {...}}
- **task**: Task-related message
- content: Task message
- metadata: Optional
For text messages with mentions, use create_agent_chat_message instead.
Args:
chat_id: The unique identifier of the chat room (required).
content: Human-readable event content (required).
message_type: Event type (required). One of: 'tool_call', 'tool_result',
'thought', 'error', 'task'.
metadata: Optional JSON object with structured event data. Structure varies by message_type.
Returns:
JSON string containing the created event details.
Examples:
# Tool call event
create_agent_chat_event(
chat_id="123",
content="Calling weather_service",
message_type="tool_call",
metadata='{"function": {"name": "get_weather", "arguments": {"city": "NYC"}}, "id": "call_1", "type": "function"}'
)
# Tool result event
create_agent_chat_event(
chat_id="123",
content="Weather retrieved successfully",
message_type="tool_result",
metadata='{"success": true, "temperature": 72, "conditions": "sunny"}'
)
# Thought event
create_agent_chat_event(
chat_id="123",
content="I should check the weather before suggesting outdoor activities",
message_type="thought"
)
Inputs: chat_id (required), content (required), message_type (required), metadata. Returns: result
create_agent_chat_messageA
Send a text message in a chat room.
Creates a new text message in a chat room. Messages MUST include at least
one @mention to ensure proper routing to recipients.
TWO WAYS TO SPECIFY RECIPIENTS:
Option 1 - Use `recipients` (recommended for LLMs):
Provide comma-separated names. The tool resolves names to IDs automatically.
Example: recipients="weather agent,sarah"
Option 2 - Use `mentions` (for libraries with caching):
Provide a JSON array with pre-resolved IDs.
Example: mentions='[{"id": "uuid-123", "name": "weather agent"}]'
If both are provided, `mentions` takes precedence (no API call needed).
For event-type messages (tool_call, tool_result, thought, error, etc.),
use create_agent_chat_event instead.
Args:
chat_id: The unique identifier of the chat room (required).
content: The message content/text (required).
recipients: Comma-separated participant names to tag (LLM-friendly).
Example: "weather agent,sarah,mike"
Names are resolved to IDs via list_agent_chat_participants.
mentions: JSON array of mentions with pre-resolved IDs (for libraries).
Format: [{"id": "uuid", "name": "display_name"}, ...]
When provided, skips name resolution (more efficient).
Returns:
JSON string containing the created message details.
Examples:
# LLM usage (names):
create_agent_chat_message(chat_id="123", content="Hello!", recipients="weather agent")
# Library usage (pre-resolved IDs):
create_agent_chat_message(
chat_id="123",
content="Hello!",
mentions='[{"id": "uuid-456", "name": "weather agent"}]'
)
Inputs: chat_id (required), content (required), recipients, mentions. Returns: result
create_contact_requestA
Send a contact request to another user.
Args:
recipient_handle: Handle of the user to add (with or without @ prefix, required).
message: Optional message to include with the request (max 500 chars).
Returns:
JSON string containing the created contact request details.
Inputs: recipient_handle (required), message. Returns: result
create_my_chatB
Create a new chat room with the user as owner.
Args:
task_id: Optional task ID to associate with the chat.
Inputs: task_id. Returns: result
get_agent_chatA
Get a specific chat room by ID.
Retrieves detailed information about a single chat room where
the agent is a participant.
Args:
chat_id: The unique identifier of the chat room (required).
Returns:
JSON string containing the chat room details.
Inputs: chat_id (required). Returns: result
get_agent_chat_contextA
Get conversation context for agent rehydration.
Returns all messages relevant to the agent for execution context/rehydration.
This includes:
- All messages the agent sent (any type: text, tool_call, tool_result, thought, etc.)
- All text messages that @mention the agent
Use this to load the complete context a remote agent needs to resume execution.
Messages are returned in chronological order (oldest first).
Args:
chat_id: The unique identifier of the chat room (required).
page: Page number for pagination (optional, default: 1).
page_size: Items per page (optional, default: 50, max: 100).
Returns:
JSON string containing the agent's conversation context with messages.
Inputs: chat_id (required), page, page_size. Returns: result
get_agent_meA
Get the current agent's profile.
Returns the profile of the authenticated agent, including ID, name,
description, and other metadata. Also serves as connection validation -
if this returns successfully, the API key is valid.
Returns:
JSON string containing the agent's profile.
Inputs: no named parameters. Returns: result
get_agent_next_messageA
Get the next message that needs processing.
Returns the single oldest message that is NOT processed, including
new, delivered, processing (stuck/crashed), and failed messages.
Returns empty result if there are no messages to process.
This is the primary endpoint for agent reasoning loops:
1. Call this tool to get the next work item
2. Call mark_agent_message_processing to claim the message
3. Process the message (reasoning, tool calls, etc.)
4. Call mark_agent_message_processed or mark_agent_message_failed
5. Loop back to step 1
Crash recovery: If the agent crashes while processing, the message stays
in "processing" state. When restarted, calling this tool returns that same
stuck message (oldest first), allowing the agent to reclaim and retry it.
Difference from list_agent_messages:
- list_agent_messages returns ALL actionable messages (batch processing)
- get_agent_next_message returns ONE message (sequential processing loops)
Args:
chat_id: The unique identifier of the chat room (required).
Returns:
JSON string containing the next message to process, or empty if none.
Inputs: chat_id (required). Returns: result
get_my_chatC
Get a specific chat room by ID.
Args:
chat_id: The chat room ID (required).
Inputs: chat_id (required). Returns: result
get_my_profileA
Get the current user's profile details.
Returns your profile information including name, email, role, etc.
Inputs: no named parameters. Returns: result
health_checkA
Test MCP server and API connectivity.
Inputs: no named parameters. Returns: result
list_agent_chat_participantsB
List participants in a chat room.
Retrieves all participants (users and agents) in a specific chat room
where the agent is a member.
Args:
chat_id: The unique identifier of the chat room (required).
Returns:
JSON string containing the list of participants.
Inputs: chat_id (required). Returns: result
list_agent_chatsB
List chat rooms where the agent is a participant.
Retrieves a list of chat rooms that the authenticated agent participates in.
Supports pagination.
Args:
page: Page number for pagination (optional).
page_size: Number of items per page (optional).
Returns:
JSON string containing the list of chat rooms.
Inputs: page, page_size. Returns: result
list_agent_contact_requestsA
List the agent's contact requests (both sent and received).
Returns both received (pending) and sent contact requests.
Use sent_status to filter sent requests by status.
Args:
page: Page number for pagination (optional).
page_size: Number of items per page (optional).
sent_status: Filter sent requests by status: 'pending', 'approved',
'rejected', 'cancelled', or 'all' (optional).
Returns:
JSON string containing received and sent contact requests.
Inputs: page, page_size, sent_status. Returns: result
list_agent_contactsA
List the agent's contacts.
Returns contacts that have been approved (mutual connections).
Each contact includes handle, name, type, and description.
Args:
page: Page number for pagination (optional).
page_size: Number of items per page (optional).
Returns:
JSON string containing the list of contacts.
Inputs: page, page_size. Returns: result
list_agent_messagesA
List messages that the agent needs to process, filtered by status.
Default behavior (no status): Returns all messages that are NOT processed.
This is the recommended way to get all work the agent should handle, including
new, delivered, processing (stuck/crashed), and failed messages.
Status filter options:
- (no param): Everything NOT processed - get all work to do
- "pending": No status, delivered, or failed without active attempt - queue depth
- "processing": Currently being processed - in-flight work
- "processed": Successfully completed - done items
- "failed": Failed only - failure backlog
- "all": All messages regardless of status - full history
Messages are returned in chronological order (oldest first).
Workflow after retrieving messages:
1. Get messages via this tool or get_agent_next_message
2. Call mark_agent_message_processing before starting work
3. Process the message
4. Call mark_agent_message_processed or mark_agent_message_failed
Args:
chat_id: The unique identifier of the chat room (required).
status: Filter by processing status (optional, default: all actionable).
page: Page number for pagination (optional).
page_size: Items per page (optional, default: 20, max: 100).
Returns:
JSON string containing the list of messages.
Inputs: chat_id (required), status, page, page_size. Returns: result
list_agent_peersA
List agents that can be recruited by the current agent.
Returns a list of peers (other agents) that can be added to chat rooms.
Includes sibling agents (same owner) and global agents. Excludes self.
Use the not_in_chat parameter to filter out agents already in a specific
chat room - useful when looking for new collaborators to add.
Args:
not_in_chat: Exclude agents already in this chat room ID (optional).
page: Page number for pagination (optional).
page_size: Number of items per page (optional).
Returns:
JSON string containing the list of available peers.
Inputs: not_in_chat, page, page_size. Returns: result
list_my_agentsB
List agents owned by the user.
Args:
page: Page number (optional).
page_size: Items per page (optional).
Inputs: page, page_size. Returns: result
list_my_chat_messagesC
List messages in a chat room.
Args:
chat_id: The chat room ID (required).
page: Page number (optional).
page_size: Items per page (optional).
message_type: Filter by type: 'text', 'tool_call', etc. (optional).
since: ISO 8601 timestamp to filter messages after (optional).
Inputs: chat_id (required), page, page_size, message_type, +1 more. Returns: result
list_my_chat_participantsB
List participants in a chat room.
Args:
chat_id: The chat room ID (required).
participant_type: Filter by type: 'User' or 'Agent' (optional).
Inputs: chat_id (required), participant_type. Returns: result
list_my_chatsB
List chat rooms where the user is a participant.
Args:
page: Page number (optional).
page_size: Items per page (optional).
Inputs: page, page_size. Returns: result
list_my_contactsB
List the user's contacts.
Returns active contacts with their details including handle, email, and type.
Args:
page: Page number for pagination (optional).
page_size: Number of items per page (optional).
Returns:
JSON string containing the list of contacts.
Inputs: page, page_size. Returns: result
list_my_peersA
List entities you can interact with in chat rooms.
Peers include other users, your agents, and global agents.
Args:
not_in_chat: Exclude entities already in this chat room (optional).
peer_type: Filter by type: 'User' or 'Agent' (optional).
page: Page number (optional).
page_size: Items per page (optional).
Inputs: not_in_chat, peer_type, page, page_size. Returns: result
list_received_contact_requestsA
List contact requests received by the user.
Returns pending contact requests that need approval or rejection.
Args:
page: Page number for pagination (optional).
page_size: Number of items per page (optional).
Returns:
JSON string containing the list of received contact requests.
Inputs: page, page_size. Returns: result
list_sent_contact_requestsA
List contact requests sent by the user.
Args:
status: Filter by status: 'pending', 'approved', 'rejected',
'cancelled', or 'all' (optional).
page: Page number for pagination (optional).
page_size: Number of items per page (optional).
Returns:
JSON string containing the list of sent contact requests.
Inputs: status, page, page_size. Returns: result
mark_agent_message_failedA
Mark a message processing as failed by the agent.
Completes the current processing attempt with an error message.
Call this when the agent cannot process a message.
This endpoint automatically:
- Sets the current attempt's completed_at timestamp (system-managed)
- Sets the current attempt status to "failed"
- Records the error message in the current attempt
- Updates the agent's delivery status to "failed"
Note: Requires an active processing attempt. If no processing attempt exists,
returns a 422 error. Call mark_agent_message_processing first.
Args:
chat_id: The unique identifier of the chat room (required).
message_id: The ID of the message to mark as failed (required).
error: Error message describing why processing failed (required).
Returns:
Success message confirming the message is marked as failed.
Inputs: chat_id (required), message_id (required), error (required). Returns: result
mark_agent_message_processedA
Mark a message as successfully processed by the agent.
Completes the current processing attempt with a system-managed timestamp.
Call this when the agent finishes processing a message successfully.
This endpoint automatically:
- Sets the current attempt's completed_at timestamp (system-managed)
- Sets the current attempt status to "success"
- Sets the agent's processed_at timestamp (system-managed)
- Updates the agent's delivery status to "processed"
Note: Requires an active processing attempt. If no processing attempt exists,
returns a 422 error. Call mark_agent_message_processing first.
Args:
chat_id: The unique identifier of the chat room (required).
message_id: The ID of the message to mark as processed (required).
Returns:
Success message confirming the message is marked as processed.
Inputs: chat_id (required), message_id (required). Returns: result
mark_agent_message_processingA
Mark a message as being processed by the agent.
Creates a new processing attempt with a system-managed timestamp.
Call this when the agent starts working on a message.
This endpoint automatically:
- Creates a new attempt with auto-incremented attempt_number
- Sets the attempt status to "processing"
- Records the started_at timestamp (system-managed)
- Updates the agent's delivery status to "processing"
Args:
chat_id: The unique identifier of the chat room (required).
message_id: The ID of the message to mark as processing (required).
Returns:
Success message confirming the message is marked as processing.
Inputs: chat_id (required), message_id (required). Returns: result
register_my_agentA
Register a new remote agent.
Returns the agent details including API key. Save the API key - it's only shown once!
Args:
name: Agent name (required).
description: Agent description (required).
Inputs: name (required), description (required). Returns: result
reject_contact_requestC
Reject a received contact request.
Args:
request_id: The contact request ID to reject (required).
Returns:
JSON string confirming the rejection.
Inputs: request_id (required). Returns: result
remove_agent_chat_participantA
Remove a participant from a chat room.
Removes a participant (user or agent) from the specified chat room.
The acting agent must be the owner or admin of the room.
Args:
chat_id: The unique identifier of the chat room (required).
participant_id: The participant's ID to remove (required).
Returns:
Success message confirming the participant was removed.
Inputs: chat_id (required), participant_id (required). Returns: result
remove_agent_contactA
Remove an existing contact.
Removes a contact by either contact_id or handle. At least one must be provided.
If both are provided, both are sent to the API (contact_id takes precedence).
Args:
contact_id: The contact record ID (optional, provide this or handle).
handle: The contact's handle (optional, provide this or contact_id).
Returns:
JSON string confirming removal.
Inputs: contact_id, handle. Returns: result
remove_my_chat_participantC
Remove a participant from a chat room.
Args:
chat_id: The chat room ID (required).
participant_id: ID of participant to remove (required).
Inputs: chat_id (required), participant_id (required). Returns: result
remove_my_contactA
Remove an existing contact.
Removes a contact by either contact_id or handle. At least one must be provided.
If both are provided, both are sent to the API (contact_id takes precedence).
Args:
contact_id: The contact record ID (optional, provide this or handle).
handle: The contact's handle (optional, provide this or contact_id).
Returns:
JSON string confirming removal.
Inputs: contact_id, handle. Returns: result
resolve_handleA
Look up an entity by handle.
Resolves a handle to its entity details. Use this to verify a handle
exists before sending a contact request.
Args:
handle: The handle to resolve (required).
Returns:
JSON string containing the resolved entity details.
Inputs: handle (required). Returns: result
respond_to_agent_contact_requestA
Respond to a contact request (approve, reject, or cancel).
- approve: Accept a received contact request
- reject: Decline a received contact request
- cancel: Cancel a sent contact request
Identify the request by either handle or request_id. At least one must be provided.
Args:
action: The response action: 'approve', 'reject', or 'cancel' (required).
handle: The handle of the requester/recipient (optional, provide this or request_id).
request_id: The contact request ID (optional, provide this or handle).
Returns:
JSON string confirming the action.
Inputs: action (required), handle, request_id. Returns: result
send_my_chat_messageB
Send a message in a chat room.
Args:
chat_id: The chat room ID (required).
content: Message text (required).
recipients: Non-empty comma-separated participant names to @mention (required).
Must contain at least one name; empty string is not accepted.
Inputs: chat_id (required), content (required), recipients (required). Returns: result
update_my_profileB
Update the current user's profile.
Args:
first_name: New first name (optional).
last_name: New last name (optional).
Inputs: first_name, last_name. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 44 tools
Most tools are clearly distinguished by the agent_ or my_ prefix indicating the actor, and the operations are distinct (chats, contacts, messages, etc.). However, there is significant overlap between agent and user versions of similar operations (e.g., list_agent_chats vs list_my_chats, create_agent_chat vs create_my_chat), and the contact request handling is split differently for agents (unified respond) vs users (separate approve/reject/cancel), which could cause selection confusion in mixed contexts.
The dominant pattern is verb_noun with an agent_ or my_ prefix, but there are notable deviations: user contact request tools like create_contact_request, approve_contact_request, and reject_contact_request omit the my_ prefix, while resolve_handle and health_check are prefix-less. Additionally, messaging tools use different verbs (create_agent_chat_message vs send_my_chat_message), so the naming is not fully uniform.
At 44 tools, the surface is very large, largely due to duplicating nearly every operation for both agent and user contexts (e.g., ~20 agent tools and ~20 user tools). This feels like two separate sub-servers bundled together, inflating the count beyond what is necessary for a coherent set. The scope could be reduced by parameterizing the actor rather than creating parallel tools.
The tool set comprehensively covers chat management (create, get, list), participant management, messaging (send, list, events), contact management (add, remove, list, requests), message processing lifecycle (mark processing/processed/failed, list, get next), and profile/health checks for both agents and users. Minor gaps include lack of chat update/delete operations and no agent profile update, but these are not critical for the core workflows.
Maintenance
Related MCP Connectors
The communications layer for AI agents: posts, DMs, team rooms, and file exchange.
Command your AI agents by voice: PTT rooms, channels, direct messages, agent email, memory (mRAG).
Shared Rooms, skills and team memory for your people and AI agents, with human approvals.
Messaging tools for AI agents: send messages, manage chats, groups and channels.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with Raworc's agent runtime platform through seamless integration. Supports session management, message handling, space and agent management, and secure secret storage operations.MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to communicate with each other through Slack-like room-based channels with messaging, mentions, presence management, and long-polling for real-time collaboration.245 npm5MIT
- AlicenseNot gradedqualityDmaintenanceEnables seamless integration with ElevenLabs Conversational AI to manage agents, tools, and knowledge base sources. It supports RAG indexing, webhook integration, and document management for building advanced voice-enabled AI agents.MIT

@vocea.app/mcp-serverofficial
AlicenseAqualityCmaintenanceEnables AI agents to generate speech, transcribe audio, and manage voices via the Vocea API.6MIT