How It Works
xpander’s MCP server provides tools to:- List Agents: Browse all agents in your organization
- Run Tasks: Invoke agents and get results
- Get Thread History: Retrieve conversation history from agent sessions
MCP Endpoints
xpander provides two MCP endpoint formats:Standard HTTP
api.xpander.ai/mcp/Standard HTTP transport for MCP clientsSetup with Claude Desktop
1
Configure Claude Desktop
Add xpander MCP server to your Claude Desktop configuration:File location:
~/Library/Application Support/Claude/claude_desktop_config.json2
Restart Claude Desktop
Close and reopen Claude Desktop to load the new configuration.
3
Authenticate
When Claude first tries to use xpander tools, you’ll be redirected to the xpander platform to authenticate and obtain your API key.The OAuth flow happens automatically - just log in when prompted.
4
Use xpander Agents
After authentication, Claude can access all your xpander agents:
- “List all my xpander agents”
- “Run my customer-support agent with input: How do I reset my password?”
- “Get the conversation history for thread abc-123”
Available MCP Tools
list_agents
Lists all agents in your organization. Parameters:- None
- Array of agent objects with
id,name,description, and metadata
“Show me all my xpander agents”
run_task
Invokes an agent and waits for the result. Parameters:agent_id(string, required): The ID of the agent to invokeinput(string, required): The message to send to the agentuser_id(string, optional): User identifier for session trackingsession_id(string, optional): Session identifier for conversation continuity
- Task result with agent response, tokens used, and execution metadata
“Run agent abc-123 with input: What’s the weather in San Francisco?“
get_thread_history
Retrieves conversation history for a specific thread/session. Parameters:thread_id(string, required): The thread/session ID to retrieve
- Array of messages with user/agent exchanges, tool calls, and timestamps
“Get the conversation history for thread sess-456”
Using with ChatGPT
ChatGPT also supports MCP. Add the xpander MCP server to your ChatGPT configuration:Authentication Flow
- First Request: MCP client calls xpander endpoint
- OAuth Redirect: You’re redirected to
app.xpander.aito authenticate - API Key Obtained: xpander platform generates and returns your API key
- Cached Locally: MCP client caches the API key for future requests
- Subsequent Requests: API key is automatically included in headers
Example Workflows
Customer Support Agent
Financial Analysis Agent
Troubleshooting
MCP Server Not Showing in Claude
- Verify
claude_desktop_config.jsonsyntax is valid JSON - Check file location:
~/Library/Application Support/Claude/claude_desktop_config.json - Restart Claude Desktop completely
- Check Claude logs:
~/Library/Logs/Claude/mcp.log
Authentication Fails
- Clear cached credentials and try again
- Verify you’re logged into
app.xpander.ai - Check organization permissions (some agents may be restricted)
Agent Invocation Fails
- Verify agent is deployed (check Workbench)
- Ensure agent is not stopped or in error state
- Check agent logs in Monitor tab
Security
OAuth Authentication: API keys are obtained through secure OAuth flow, not embedded in configuration files. Scoped Access: Each API key is scoped to your user account and organization. Revocation: Revoke access anytime fromapp.xpander.ai → Settings → API Keys

