Connect Oshaani MCP to Cursor, Claude, and other agents โ user key for agent management, agent key for conversations
The Oshaani MCP (Model Context Protocol) Server exposes two HTTP endpoints on
https://mcp.oshaani.com. Use a user API key to manage agents,
or an agent API key to run conversations, webhooks, and file operations.
https://mcp.oshaani.comGET /health (no auth)
Create and manage agents from your Oshaani account.
Chat, webhooks, and files for a published agent.
| Path | API key | Tools |
|---|---|---|
/mcp |
User key (profile) | Agent CRUD & model listing |
/agent/mcp |
Agent key (dashboard) | Conversations, webhooks, files |
create_conversation or agent_webhook
โ
Receive request_id + conversation_id
โ
Poll get_answer until completed
โ
continue_conversation for follow-ups
Oshaani uses two key types. Using the wrong key on an endpoint returns 401 Unauthorized
with a message telling you which endpoint to use instead.
Use for: creating agents, listing models, updating agent settings.
Use for: chat, webhooks, file upload/download for that agent only.
Cursor is a popular AI-powered code editor that supports MCP servers. Here's how to add the Oshaani MCP server:
Open Cursor and go to Settings โ Features โ MCP Servers or edit the MCP configuration file directly.
Open or create the MCP configuration file. The location depends on your OS:
~/Library/Application Support/Cursor/User/globalStorage/mcp.json%APPDATA%\Cursor\User\globalStorage\mcp.json~/.config/Cursor/User/globalStorage/mcp.jsonAdd one or both MCP servers. Most users want agent conversation tools; add the user server if you also manage agents from Cursor.
{
"mcpServers": {
"oshaani-agent-management": {
"url": "https://mcp.oshaani.com/mcp",
"headers": {
"Authorization": "ApiKey YOUR_USER_API_KEY_HERE"
}
},
"oshaani-agent-conversation": {
"url": "https://mcp.oshaani.com/agent/mcp",
"headers": {
"Authorization": "ApiKey YOUR_AGENT_API_KEY_HERE"
}
}
}
}
YOUR_USER_API_KEY_HERE โ from Profile โ API Keys
YOUR_AGENT_API_KEY_HERE โ from your published agent dashboard
Restart Cursor to load the new MCP server configuration.
oshaani-agent-conversation lists chat/file tools; oshaani-agent-management lists agent CRUD tools.
Claude Desktop (Anthropic's official app) supports MCP servers through configuration files.
Find your Claude Desktop configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.jsonAdd the Oshaani MCP servers (user + agent, or either one):
{
"mcpServers": {
"oshaani-agent-management": {
"url": "https://mcp.oshaani.com/mcp",
"headers": {
"Authorization": "ApiKey YOUR_USER_API_KEY_HERE"
}
},
"oshaani-agent-conversation": {
"url": "https://mcp.oshaani.com/agent/mcp",
"headers": {
"Authorization": "ApiKey YOUR_AGENT_API_KEY_HERE"
}
}
}
}
Use your user key for /mcp and your published agent key for /agent/mcp.
Close and reopen Claude Desktop to load the new configuration.
The Oshaani MCP server follows the Model Context Protocol specification and should work with any MCP-compatible client. Here's a generic configuration:
{
"mcpServers": {
"oshaani-agent-management": {
"url": "https://mcp.oshaani.com/mcp",
"headers": {
"Authorization": "ApiKey YOUR_USER_API_KEY_HERE"
}
},
"oshaani-agent-conversation": {
"url": "https://mcp.oshaani.com/agent/mcp",
"headers": {
"Authorization": "ApiKey YOUR_AGENT_API_KEY_HERE"
}
}
}
}
{
"mcpServers": {
"oshaani-agent-conversation": {
"url": "https://mcp.oshaani.com/agent/mcp",
"headers": {
"Authorization": "ApiKey YOUR_AGENT_API_KEY_HERE"
}
}
}
}
https://mcp.oshaani.com/mcp โ user API keyhttps://mcp.oshaani.com/agent/mcp โ agent API key (published agent)Both endpoints accept the same header formats. The key type (user vs agent) must match the endpoint.
| Endpoint | Key type | Wrong key error |
|---|---|---|
POST /mcp |
User API key | Agent key rejected โ use /agent/mcp |
POST /agent/mcp |
Agent API key | User key rejected โ use /mcp |
Authorization: ApiKey YOUR_API_KEY_HERE
Authorization: Bearer YOUR_API_KEY_HERE
X-API-Key: YOUR_API_KEY_HERE
headers object as shown above.
Some clients also accept api_key in the JSON-RPC body if headers are not supported.
Discovery:
GET /auth/info (user key docs) ยท
GET /auth/agent-info (agent key docs)
curl https://mcp.oshaani.com/health
/mcp)curl -s -X POST https://mcp.oshaani.com/mcp \
-H "Content-Type: application/json" \
-H "Authorization: ApiKey YOUR_USER_API_KEY" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'
/agent/mcp)curl -s -X POST https://mcp.oshaani.com/agent/mcp \
-H "Content-Type: application/json" \
-H "Authorization: ApiKey YOUR_AGENT_API_KEY" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'
Most MCP clients will show:
/mcp โ switch URL to /agent/mcp/agent/mcp โ switch URL to /mcphttps://mcp.oshaani.com/mcphttps://mcp.oshaani.com/agent/mcphttps://mcp.oshaani.com/health/agent/mcpIf you continue to experience issues:
/var/log/mcp-server/ (includes mcp_server.log when file logging enabled)/var/log/nginx/mcp_oshaani_com_error.logOshaani MCP Server Guide
/mcp ยท /agent/mcp ยท
mcp.oshaani.com ยท
oshaani.com