masumi-network/sokosumi-mcp-server
If you are the rightful owner of sokosumi-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
Sokosumi-MCP-Server is a specialized server designed to facilitate communication and data exchange using the Model Context Protocol (MCP).
Sokosumi MCP Server
A minimal MCP (Model Context Protocol) server that provides access to the Sokosumi API.
Features
- Streamable HTTP transport only
- Stateless mode for multi-user support
- Support for both preprod and mainnet environments (as separate tool sets)
- API key authentication via URL parameter or Authorization header
- Clean, minimal implementation
Available Features
Prompts (Guided Workflows)
select_agent_for_task(task_description, environment)
- Help select the right agent for a taskcreate_job_wizard(agent_id, environment)
- Guide through job creation processmonitor_jobs(status_filter?, environment)
- Set up job monitoring workflowtroubleshoot_job(job_id, environment)
- Debug failed or stuck jobsestimate_job_cost(agent_id, job_count, environment)
- Estimate credits neededquick_status_check(environment)
- Quick overview of jobs and agents
Server Info
get_server_info()
- Get server configuration and available environments
Preprod Tools (prefix: preprod_
)
preprod_get_user_info()
- Get current user informationpreprod_list_agents()
- List all available agentspreprod_get_agent_jobs(agent_id)
- Get jobs for a specific agentpreprod_list_jobs(status?, agent_id?)
- List jobs with optional filterspreprod_get_agent_input_schema(agent_id)
- Get input schema for an agentpreprod_create_agent_job(agent_id, input_data, max_accepted_credits)
- Create a new agent job
Mainnet Tools (prefix: mainnet_
)
mainnet_get_user_info()
- Get current user informationmainnet_list_agents()
- List all available agentsmainnet_get_agent_jobs(agent_id)
- Get jobs for a specific agentmainnet_list_jobs(status?, agent_id?)
- List jobs with optional filtersmainnet_get_agent_input_schema(agent_id)
- Get input schema for an agentmainnet_create_agent_job(agent_id, input_data, max_accepted_credits)
- Create a new agent job
Setup
Option 1: Using uv (Recommended)
# Install dependencies
uv add "mcp[cli]" httpx
# Run the server
uv run server.py
Option 2: Using venv and pip
# Create virtual environment
python -m venv venv
# Activate virtual environment
# On macOS/Linux:
source venv/bin/activate
# On Windows:
# venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Run the server
python server.py
The server will start on http://localhost:8000/mcp
Authentication
The server runs in stateless mode and supports two authentication methods:
- URL Parameter (Recommended for Claude Desktop): Append
?api_key=YOUR_KEY
to the URL - Authorization Header: Use Bearer token in the Authorization header
Each user connects with their own API key.
MCP Client Configuration
Method 1: URL Parameter (Claude Desktop Compatible)
{
"mcpServers": {
"sokosumi": {
"type": "http",
"url": "http://localhost:8000/mcp?api_key=YOUR_API_KEY_HERE"
}
}
}
Method 2: Authorization Header
{
"mcpServers": {
"sokosumi": {
"type": "http",
"url": "http://localhost:8000/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY_HERE"
}
}
}
}
Python Client Example
from mcp import ClientSession
from mcp.client.streamable_http import streamablehttp_client
# Method 1: URL Parameter
async with streamablehttp_client(
"http://localhost:8000/mcp?api_key=YOUR_API_KEY_HERE"
) as (read, write, _):
async with ClientSession(read, write) as session:
await session.initialize()
# List available tools
tools = await session.list_tools()
# Call preprod tools
result = await session.call_tool("preprod_get_user_info")
# Method 2: Authorization Header
headers = {
"Authorization": "Bearer YOUR_API_KEY_HERE"
}
async with streamablehttp_client(
"http://localhost:8000/mcp",
headers=headers
) as (read, write, _):
async with ClientSession(read, write) as session:
await session.initialize()
# Call mainnet tools
result = await session.call_tool("mainnet_list_agents")
Deployment
Local Development
python server.py
Docker Deployment
FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt server.py ./
RUN pip install -r requirements.txt
EXPOSE 8000
CMD ["python", "server.py"]
Cloud Deployment
Deploy as a containerized service. The server is stateless and can scale horizontally.
Base URLs
- Preprod:
https://preprod.sokosumi.com
- Mainnet:
https://app.sokosumi.com
How It Works
- Start the server once - it runs stateless and supports multiple users
- Each user connects with their own API key (via URL parameter or Authorization header)
- The server extracts the API key from each request and uses it for Sokosumi API calls
- Multiple users can connect simultaneously, each with their own API key
Testing
Test the server with the MCP Inspector:
uv run mcp dev server.py
Note: When testing with MCP Inspector, you'll need to configure the Authorization header with your API key.
Security Notes
- Never commit API keys to version control
- Each user's API key is isolated to their own requests
- The server doesn't store any API keys
- For production, deploy behind HTTPS