Unicoda MCP Server
Wraps the @github/copilot-sdk so agents can drive a Copilot coding agent against a project directory: starting/stopping/listing workspaces bound to a folder (reading AGENTS.md for context), creating and managing multi-turn sessions, sending prompts either fire-and-forget (send, returns a requestId) or blocking (send_and_wait), long-polling request status with detail levels (status/message/brief/full), aborting in-flight requests, and listing available Copilot models.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Unicoda MCP Server create a session for ~/my-app and ask it to add error handling to src/api.ts"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Unicoda MCP Server
Unified AI Coding Agent MCP Server — wraps multiple coding agent SDKs behind a consistent Model Context Protocol (MCP) interface.
Overview
Unicoda lets MCP clients interact with different AI coding agents through a single, standardized abstraction layer. Instead of integrating each SDK separately, you get one consistent interface for workspace management, sessions, and chat.
Core Concepts
Concept | Description |
Provider | Backend SDK (copilot, codex, claude-code) |
Workspace | An agent instance bound to a project directory. Reads instruction files like |
Session | A conversation within a workspace. Supports multi-turn dialogue with context. |
Request | A single message send, tracked by |
Architecture
┌─────────────────┐
│ MCP Client │
└────────┬────────┘
│ MCP Protocol
▼
┌─────────────────────────────────────────┐
│ Unicoda MCP Server │
│ ┌─────────────────────────────────┐ │
│ │ Unified Tool Interface │ │
│ └─────────────┬───────────────────┘ │
│ ┌─────────────┴───────────────────┐ │
│ │ Provider Abstraction │ │
│ │ ┌─────────┐ ┌───────┐ ┌─────┐ │ │
│ │ │ Copilot │ │ Codex │ │ ... │ │ │
│ │ └─────────┘ └───────┘ └─────┘ │ │
│ └─────────────────────────────────┘ │
└─────────────────────────────────────────┘Related MCP server: agent-shuttle-mcp
Supported Providers
Provider | SDK | Status |
GitHub Copilot |
| ✅ Implemented |
OpenAI Codex |
| 🔜 Planned |
Claude Code | TBD | 🔜 Planned |
Installation
# Run directly from npm
npx @hongw/unicoda-mcp
# Or install globally
npm install -g @hongw/unicoda-mcp
# Or clone and build from source
git clone https://github.com/hongw/unicoda-mcp
cd unicoda-mcp
pnpm install
pnpm build
node dist/index.jsMCP Configuration
Add to your MCP client configuration:
{
"mcpServers": {
"unicoda": {
"command": "node",
"args": ["/path/to/unicoda-mcp/dist/index.js"],
"env": {
"UNICODA_PROVIDER": "copilot"
}
}
}
}Configuration Options
Parameter | Environment Variable | Default | Description |
|
|
| Default provider |
|
|
| Auto-start workspace when needed |
|
|
| Maximum concurrent workspaces |
|
|
| Workspace idle timeout (ms) |
|
|
| CLI port allocation start |
Available Tools
Workspace Management
Tool | Description |
| Start a workspace for a project directory |
| Stop a workspace |
| List all running workspaces |
Session Management
Tool | Description |
| Create a new conversation session |
| List sessions in a workspace |
| Delete a session |
| Get full chat history |
Chat
Tool | Description |
| Send a message (returns immediately with |
| Send a message and wait for completion |
| Check request status with optional long-polling |
| Abort an in-progress request |
Utility
Tool | Description |
| List available models |
Quick Start
// 1. Create session (auto-starts workspace)
session_create({ workspace: "/path/to/project" })
// → { sessionId: "sess-xyz", workspaceId: "ws-abc", autoStarted: true }
// 2. Send task and wait for completion
send_and_wait({
workspace: "ws-abc",
sessionId: "sess-xyz",
prompt: "Add error handling to src/api.ts"
})
// → { requestId: "req-123", status: "completed", messages: [...] }Poll Options
The poll tool supports long-polling and response filtering:
Parameter | Description |
| Long-poll timeout (ms). Waits up to this duration for completion. |
| Response detail level: |
| |
| |
| |
|
Message Format
Responses include a messages array with conversation events:
interface Message {
type: 'user' | 'assistant' | 'tool_call' | 'tool_result' | 'system' | 'error';
content: string;
timestamp: string; // ISO8601
metadata?: {
toolName?: string;
toolArgs?: unknown;
toolResult?: unknown;
// ...
};
}Request Status
All requests follow a unified state machine:
queued → running → completed
→ error
→ timeout
↓
abortedError Handling
Errors include structured information:
{
"error": {
"code": "WORKSPACE_NOT_FOUND",
"message": "Workspace ws-xyz not found",
"retryable": false
}
}Common error codes: WORKSPACE_NOT_FOUND, SESSION_NOT_FOUND, REQUEST_NOT_FOUND, TIMEOUT, CLI_START_FAILED
Development
pnpm install
pnpm build
pnpm test
pnpm lintContributing
Contributions welcome! See ARCHITECTURE.md for internal design details and implementation notes.
Available Tools
12 toolsabortAbort RequestC
Abort an in-progress request.
Inputs: requestId (required), sessionId (required), workspace (required).
models_listList ModelsC
List available AI models.
Inputs: provider.
pollPoll RequestA
Check the status of a previously sent request. Returns accumulated messages and current status. Supports long-polling via the timeout parameter and flexible detail levels.
Inputs: requestId (required), sessionId (required), workspace (required), detail, +1 more.
sendSend MessageA
Send a message to GitHub Copilot. Returns immediately with a requestId that can be polled for status and results.
Inputs: prompt (required), sessionId (required), workspace (required), attachments.
send_and_waitSend and WaitA
Send a message to GitHub Copilot and wait for the complete response. Blocks until the agent finishes or timeout is reached.
Inputs: prompt (required), sessionId (required), workspace (required), timeout, +1 more.
session_createCreate SessionC
Create a new conversation session in a workspace. A directory path or workspace ID can be used.
Inputs: workspace (required), model, provider, sessionId.
session_deleteDelete SessionC
Delete a session from a workspace.
Inputs: sessionId (required), workspace (required).
session_historySession HistoryC
Get the chat history for a session.
Inputs: sessionId (required), workspace (required).
session_listList SessionsC
List all sessions in a workspace.
Inputs: workspace (required).
workspace_listList WorkspacesB
List all running workspaces.
Inputs: no named parameters.
workspace_startStart WorkspaceC
Start a GitHub Copilot workspace bound to a project directory.
Inputs: directory (required), provider.
workspace_stopStop WorkspaceB
Stop a running workspace and release its resources.
Inputs: workspace (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 12 tools
Most tools map cleanly to distinct resource+action pairs (workspace_*, session_*, models_list, poll, abort). The main overlap is between send and send_and_wait, which do the same underlying operation with different blocking semantics, and session_history versus poll could be momentarily confused (persisted session chat vs. in-flight request state), but descriptions resolve both.
All names use snake_case and are highly readable. However, the convention shifts between noun_verb for resource operations (workspace_start, session_create, models_list) and bare verbs for the request lifecycle (send, poll, abort), a minor deviation from an otherwise predictable pattern.
Twelve tools is well within the sweet spot for a workspace/session orchestration server. Each tool covers a distinct lifecycle step (start/stop/list, create/list/delete/history, send/poll/abort) and none feel redundant or filler.
The surface covers full lifecycle for workspaces (start/stop/list) and sessions (create/list/delete/history) plus a complete async request flow (send, send_and_wait, poll, abort). Minor gaps exist: no workspace status/get details, no session rename or history clearing, and no way to query a single session's metadata beyond history.
Maintenance
Related MCP Connectors
Connect MCP clients to 2,000+ AI models without managing provider API keys.
Real-time chat hub for AI agents — Claude Code, Cursor, Cline, Codex over MCP or REST.
MCP server for building and testing AI agents with multi-model experimentation and insights.
AI agent registry — search, discover, register, and connect agents via MCP.
Related MCP Servers
- FlicenseNot gradedqualityBmaintenanceEnables AI agents to access unified development tools including code generation, documentation synchronization, test case rendering, and architecture graph queries through a single MCP server.-
- AlicenseBqualityBmaintenanceEnables MCP clients to delegate prompts to locally configured Codex, Antigravity, OpenCode, and Claude Code agents, fetch live model catalogs and quotas, and maintain stateful multi-turn sessions with selectable tool policies.19MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants and IDEs to manage workspaces, projects, tasks, and AI agents through natural language, including creation, updates, completion, assignment, and automation. It also supports generating MCP tools from arbitrary OpenAPI specs for broader API integration.2,530 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to research, plan, generate requirements, create starter projects, map codebases, curate context, manage tasks, and run multi-step development workflows through MCP-compatible clients.42 npmMIT