
LLM Provider MCP
io.github.manishiitgPublished by GitHub account manishiitgv0.7.3Updated Oct 24, 2026
Delegate asynchronous coding jobs between Claude Code, Codex, Cursor Agent, and Pi.
Overview
A local stdio MCP server that lets a coding agent delegate asynchronous coding jobs to other coding CLIs such as Claude Code, Codex, Cursor Agent and Pi.
- What you can do
- List enabled coding-agent targets and their capabilities, and discover available model selectors for them. Start an asynchronous coding job in another coding CLI. Read a job's progress, terminal output or final result. Cancel a queued or running job. Jobs are persisted in SQLite and run in detached tmux sessions, so the host can keep working and collect results later.
- When to use it
- Use it when you work in a coding CLI such as Codex or Claude Code and want to hand a task to a different coding agent in the same project, continue your own work, and retrieve the result later. It suits multi-agent delegation workflows rather than direct hosted-model API calls.
- Requirements
- Runs as a local process on macOS or Linux (desktop only). Needs tmux 3.x or newer and at least one installed and authenticated coding CLI (Claude Code, Codex CLI, Cursor Agent or Pi) using its existing native login. Installation is done per project via the provided install script, which detects CLIs and registers hosts and targets.
Installation
In SourceWeft
- Open LLM Provider MCP in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
Multi-LLM Provider for Go
[CI] [Release] [License: BSL 1.1]
multi-llm-provider-go is a Go library for using hosted LLM APIs and local
coding agents through a shared set of provider interfaces.
It supports two complementary ways to run a model:
- API providers call hosted models through their normal SDK or HTTP transport, including OpenAI, Anthropic, Bedrock, Vertex AI, Azure, and OpenRouter.
- Coding-agent providers run Claude Code, Codex CLI, Cursor Agent, or Pi in native SDK or protocol sessions, preserving their native tools, subscriptions, project context, and authenticated sessions.
The repository also includes llm-provider-mcp, an optional MCP server for
delegating asynchronous work between coding agents. It is one way to expose the
provider library—not the library's only use case.
Why This Exists
Applications should be able to choose the right model and transport for each task without rebuilding their orchestration layer.
Use a direct API when you want a conventional request/response integration, predictable infrastructure, or model-level features such as structured output, embeddings, and media generation. Use a coding-agent CLI when you want an agent that can inspect a repository, edit files, run commands, and reuse an existing local subscription. Both fit behind the same Go model abstraction.
Supported Providers
The core InitializeLLM factory returns the same llmtypes.Model interface for
text and coding-agent providers:
Specialized factories expose capabilities that do not fit the text-model interface:
Gemini models are available through Vertex AI for direct API access or through Pi as a coding agent. The old Gemini CLI adapter has been removed.
Common Capabilities
Provider support varies, but the shared interfaces cover:
- Text generation and streaming
- Tool calling and structured output
- Token usage, model metadata, logging, and event emission
- Embeddings
- Image input and generation
- Video generation and conversational video editing
- Audio generation and transcription
- Music generation
- Stateful coding-agent sessions, continuation, and terminal progress
Quick Start: Go Library
Install the module:
The current module requires Go 1.25.12 or newer.
Initialize a provider and use the returned llmtypes.Model:
Set the credential expected by the selected provider—for example,
OPENAI_API_KEY for OpenAI. Credentials can also be supplied explicitly with
Config.APIKeys. See the examples for streaming, tool
calls, custom logging, Bedrock, and Vertex AI.
Configuration
llmproviders.Config controls provider initialization:
Common credential sources include:
See .env.example for common provider credentials. Model, endpoint, fallback, and test-specific variables are documented next to the provider adapters and tests that consume them.
Changing transports starts with changing the provider:
Bounded coding-agent calls can use the process working directory and a temporary
session automatically. Long-lived host applications should explicitly pass
CodingAgentWorkingDirOption, CodingAgentInteractiveSessionOption, and
CodingAgentPersistentInteractiveOption. Provider-specific options additionally
control the model, approval policy, resume ID, tools, and streaming behavior.
Coding-agent transports
The coding-agent adapters turn native coding CLIs into providers without reimplementing their agent loops. They use each CLI's existing login and model access, and run in a local project with that CLI's native file and shell tools.
Native SDK and protocol transports are the defaults. Keep tmux available explicitly when a terminal session is needed:
Set these variables on the backend and restart it. A native launch failure does
not switch to tmux automatically. SDK modes require Node.js and the matching
@anthropic-ai/claude-agent-sdk or @cursor/sdk package. The adapters look in
the managed CLI installation prefix before the global npm prefix; explicit
CLAUDE_AGENT_SDK_PATH and CURSOR_SDK_PATH overrides are also supported.
Requirements for the optional tmux transport:
- macOS or Linux
- tmux 3.x or newer
- At least one installed and authenticated coding CLI
The library exposes session lifecycle, resume, input, interrupt, pane capture, and cleanup helpers so a host application can manage coding agents as part of its own workflow.
Module Layout
llmtypes.Model is the central text request/response interface. Additional
interfaces cover embeddings, image generation, video generation, audio
generation and transcription, and music generation.
Optional: Asynchronous Delegation Over MCP
llm-provider-mcp packages the coding-agent providers as a local stdio MCP
server. A Codex or Claude Code host can queue work in another coding CLI,
continue working, and retrieve the result later. Jobs are persisted in SQLite
and executed in detached tmux sessions.
Install it in the project where you want delegation:
The setup detects installed CLIs, registers selected hosts and targets for the
current project, verifies authentication, and installs the delegation skill.
The server is also published in the
official MCP Registry as
io.github.manishiitg/llm-provider-mcp.
It exposes five tools:
See Installation and Delegation workflow for the complete MCP workflow.
Security And Trust
- Direct API credentials remain in the host process or the provider's normal credential chain.
- Coding-agent credentials remain owned by the native CLI.
- tmux-backed agents have the local user's filesystem and process permissions; tmux is a transport, not a sandbox.
- A coding agent can modify the working tree and run commands. Review and test delegated changes before accepting them.
LLM_PROVIDER_MCP_WORKSPACE_ROOTScan restrict directories accepted by the MCP server, but it does not create an operating-system sandbox.
Read Security and trust before enabling unattended coding-agent execution in sensitive repositories. On a shared Linux host, run each user's CLI as their own Linux account: Slot launches.
Testing And Coverage
The repository uses several layers of testing because hosted APIs and terminal TUIs fail in different ways:
API-provider coverage is not uniform. This inventory reflects the tests and manual commands currently present in the repository:
“Yes” does not mean every capability is covered. The API provider test contract distinguishes automated Go tests, replay/manual smoke coverage, partial coverage, and known gaps at feature level.
The coding-agent certification suite covers all four active CLI providers:
The coding-agent matrix shows the release-blocking contract areas. Broader
non-P0 certification gaps remain explicitly tracked in
knownCertificationGaps. These checks do not promise that every upstream CLI
version behaves identically. Real tests are gated by explicit environment
variables and require the relevant CLI login or provider credentials.
Run the offline suite and build the manual test client:
Detailed, provider-by-provider coverage and real-test commands live in:
- API provider test contract
- Coding-agent tmux contract
- Structured coding-agent contract
- Testing guide
Code Quality And Secret Scanning
The project uses golangci-lint for static analysis and gitleaks for secret
scanning:
Documentation
- Go provider API
- Examples
- Coding-agent providers and models
- MCP installation
- Delegation workflow
- Architecture
- Security and trust
- API provider test contract
- Coding-agent tmux contract
- Replay and manual test runner
- Roadmap
Development
CI also compile-checks MCP Agent and MCP Agent Builder against the current checkout to prevent accidental public API breakage.
See CONTRIBUTING.md before opening a pull request. Report security issues using SECURITY.md, not a public issue.
License
multi-llm-provider-go is source-available under the Business Source License 1.1, from 2026-10-09. You may read, modify and run it for personal projects, development, testing, evaluation, education and research. Using it in the operation of a business, or offering it to others, needs a commercial license: contact us through agentworkshq.com/about. Each version converts to the Apache License 2.0 on the Change Date in the license. Versions published before 2026-10-09 remain available under the MIT License.
Source: README.md at commit 7a6f6cd
Tools
0Version history
1- v0.7.3LatestSep 16, 2026
Score
40% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Declare a license in the repository or the registry entry.