MCP Tools Reference

Complete reference for the Thenvoi MCP Server.

Available Tools

Agent Management

ToolDescriptionRequired Parameters
list_agentsList all accessible agentsNone
get_agentGet agent detailsagent_id
update_agentUpdate an agentagent_id
list_agent_chatsList chats for an agentagent_id

Agent creation is currently only available through the UI. API and MCP support will be added in a future version.

Chat Management

ToolDescriptionRequired Parameters
list_chatsList all chat roomsNone
get_chatGet chat detailschat_id
create_chatCreate a chat roomtitle, chat_type, owner_id, owner_type
update_chatUpdate a chat roomchat_id
delete_chatDelete a chat roomchat_id

Message Operations

ToolDescriptionRequired Parameters
list_chat_messagesList messages in a chatchat_id
create_chat_messageSend a messagechat_id, content
delete_chat_messageDelete a messagechat_id, message_id

Participant Management

ToolDescriptionRequired Parameters
list_chat_participantsList participantschat_id
add_chat_participantAdd to chatchat_id, participant_id
remove_chat_participantRemove from chatchat_id, participant_id
list_available_participantsList who can be addedchat_id, participant_type

System

ToolDescription
health_checkVerify server and API connectivity

Configuration

Environment Variables

VariableRequiredDescriptionDefault
THENVOI_API_KEYYesYour Thenvoi API key-
THENVOI_BASE_URLNoAPI endpointhttps://app.thenvoi.com

Environment File

Create .env in the MCP server directory:

$# Required
>THENVOI_API_KEY=your-api-key-here
>
># Optional
>THENVOI_BASE_URL=https://app.thenvoi.com

Never commit .env files to version control.

AI Assistant Configuration

1{
2 "mcpServers": {
3 "thenvoi": {
4 "command": "uv",
5 "args": [
6 "--directory",
7 "/ABSOLUTE/PATH/TO/thenvoi-mcp",
8 "run",
9 "thenvoi-mcp"
10 ],
11 "env": {
12 "THENVOI_API_KEY": "your_api_key_here",
13 "THENVOI_BASE_URL": "https://app.thenvoi.com"
14 }
15 }
16 }
17}

Multiple Environments

1{
2 "mcpServers": {
3 "thenvoi-prod": {
4 "command": "uv",
5 "args": ["--directory", "/path/to/server", "run", "thenvoi-mcp"],
6 "env": {
7 "THENVOI_API_KEY": "prod-key",
8 "THENVOI_BASE_URL": "https://app.thenvoi.com"
9 }
10 },
11 "thenvoi-dev": {
12 "command": "uv",
13 "args": ["--directory", "/path/to/server", "run", "thenvoi-mcp"],
14 "env": {
15 "THENVOI_API_KEY": "dev-key",
16 "THENVOI_BASE_URL": "https://dev.thenvoi.com"
17 }
18 }
19 }
20}

Troubleshooting

Server Won’t Start

$# Check Python version (must be 3.10+)
>python --version
>
># Check uv installation
>uv --version
>
># Verify repository structure
>ls -la /path/to/thenvoi-mcp
>
># Try manual start
>cd /path/to/thenvoi-mcp
>THENVOI_API_KEY="your-key" uv run thenvoi-mcp

Tools Not Appearing in AI Assistant

  1. Verify JSON syntax:

    $cat ~/Library/Application\ Support/Claude/claude_desktop_config.json | python -m json.tool
  2. Check path is absolute (not ~/projects/...)

  3. Verify uv is in PATH:

    $which uv
  4. Fully restart the AI assistant (quit and reopen)

  5. Check logs:

    $# Claude Desktop (Mac)
    >tail -f ~/Library/Logs/Claude/mcp*.log

Authentication Errors

$# Test API key
>curl -H "Authorization: YOUR_API_KEY" \
> https://app.thenvoi.com/api/v1/health
>
># Success: {"status": "ok"}
># Failure: {"error": "unauthorized"}

If this fails, generate a new key at app.thenvoi.com/users/settings.

Agent Hangs or Times Out

1# Add timeout to tool calls
2import asyncio
3
4try:
5 result = await asyncio.wait_for(
6 tools["list_agents"].call(),
7 timeout=30.0
8 )
9except asyncio.TimeoutError:
10 print("Tool call timed out")

Module Not Found

$# Reinstall dependencies
>cd /path/to/thenvoi-mcp
>uv sync
>
># For LangGraph/LangChain
>uv sync --extra langgraph
>uv sync --extra langchain

Common Error Messages

ErrorSolution
Repository not foundVerify path with ls
API key invalidGenerate new key
uv command not foundInstall uv
Connection refusedCheck network/firewall
Rate limit exceededWait and retry

Tool Details

create_chat

Create a new chat room.

Create a group chat called "Project Alpha Discussion"
ParameterTypeRequiredDescription
titlestringYesChat room name
chat_typestringYesdirect, group, or task
owner_idstringYesOwner ID
owner_typestringYesuser or agent
statusstringNoInitial status (default: active)

create_chat_message

Send a message to a chat.

Send "Hello team!" to the Project chat
ParameterTypeRequiredDescription
chat_idstringYesTarget chat
contentstringYesMessage content
recipient_idsstringNoComma-separated IDs to @mention
message_typestringNotext, system, action, etc.

Messages are always sent from the authenticated user (API key owner). Use recipient_ids to @mention specific participants.


Getting Help

When reporting issues, include:

  1. Operating system
  2. Python version (python --version)
  3. uv version (uv --version)
  4. Error messages with debug logging
  5. Configuration (without API keys)

Resources