A minimal MCP server demonstrating the experimental tasks feature over streamable HTTP.
cd examples/servers/simple-task
uv run mcp-simple-taskThe server starts on http://localhost:8000/mcp by default. Use --port to change.
This server exposes a single tool long_running_task that:
- Must be called as a task (with
taskmetadata in the request) - Takes ~3 seconds to complete
- Sends status updates during execution
- Returns a result when complete
In one terminal, start the server:
cd examples/servers/simple-task
uv run mcp-simple-taskIn another terminal, run the client:
cd examples/clients/simple-task-client
uv run mcp-simple-task-client