MCP sources

Introduction

A source can front a remote MCP server. swarmvia is the server's MCP client: it holds the server's credential, keeps the session, and admits every tool call against the source's concurrency limit. Agents reach the server's tools through the swarmvia MCP server they already have, or through the source's own two endpoints.

The server's URL is the only setting. Choose MCP server when you create a source, enter the URL, and choose Check. swarmvia asks the server what it needs, the way an MCP client does:

The server answers What swarmvia does
An initialize result, with no token Nothing to connect. The source is ready.
401 with OAuth metadata swarmvia becomes an OAuth client of the server (with its published client metadata where the server accepts it, otherwise by registering) and you connect once. A server that allows neither, such as GitHub's, needs an OAuth app you register with its provider: the dialog shows the redirect URI and asks for the app's client ID and secret.
401 with no OAuth metadata The server takes a static token. Paste it at creation or on the source page.

The URL, like the backend, is fixed at creation. Create another source for another server.

The source shows the server's logo when the server publishes one, or its company's site icon otherwise. swarmvia fetches it once, re-encodes it, and serves its own copy, so the vendor never sees which teams front it.

Whose account swarmvia uses

For an OAuth server, choose at creation:

  • One shared connection: you sign in once and every caller acts as that account. The access log records who called.
  • Each member's own account: every member connects their own account from the source page, and their calls act as them. Keys must act for a member; machine keys are refused. See Per-member credentials.

The credential belongs to the source. It is not offered to other sources or webhooks, and it is deleted with the source.

Tools

The source page lists the server's tools, fetched live from the server, grouped into Read and Write. Read tools are the ones the server marks read-only. Everything else is a write.

A new source serves no tools. The tools the server marks read-only are ticked as a suggestion; review them, tick any write tool the work needs, and save. A tool that is off is neither listed nor callable, and a call to one is refused before it reaches the server.

Turning a write tool on lets a connector call it. You do not reinstall a connector to change the list. Groups still decide who can see the source.

A read-only access key sees and calls only the tools that are on and that the server marks read-only (readOnlyHint).

Tool pinning

A tool's description and input schema are instructions to an agent. A server that rewrites them after you looked can tell every agent that uses the tool to do something you never approved.

When you turn a tool on, swarmvia pins it to the definition you were shown. The pin is a fingerprint of everything swarmvia passes on about the tool:

  • its name, title, and description
  • its input schema and its output schema
  • every mark the server puts on it: read-only, destructive, idempotent, open-world, and the annotation title

A tool's icons are the only part left out. Before it serves the tool, swarmvia compares the server's definition with the pinned one.

The server's definition What callers get
Matches the pin The tool, as you approved it.
Differs from the pin Nothing. The tool is not listed, and a call is refused with 403 tool_changed. Every other tool on the source keeps working.
A tool nobody has reviewed Nothing. New tools stay off until you turn them on.
A name the server lists more than once Nothing. The tool is not listed, and a call is refused with 403 tool_conflict.

The source's owners and admins are emailed when a pinned tool changes: once for each new definition, and at most 8 times for one tool until you approve it again. The source page shows what you approved beside what the server sends now. Choose Approve the new definition to pin the new one, or Turn the tool off, and save. Until you decide, the tool stays off. There is no setting that keeps serving a changed tool.

A server that lists the same tool name twice could show the definition you approved and run another. The source page marks such a tool listed more than once. It cannot be turned on. A tool you had approved keeps its pin and works again when the server lists it once, with the definition you approved.

Saving checks each tool against the server's list at that moment, not a cached one. A tool the server added after your page loaded is not saved as reviewed; it shows as new the next time you look.

What pinning does not cover

A server also sends instructions for agents when a session opens. They are free text and are not part of any tool, so no pin covers them. On a source with pinned tools, swarmvia does not pass the server's instructions on to callers: GET /tools leaves them out, and so does source_list_tools. The source page still shows them to you. The server's name, title, and version are passed on.

swarmvia checks the definition it serves. It cannot see what the server does when the tool runs, so a server that changes a tool's behavior and leaves its definition alone is not caught.

Sources created before tool pinning

A source created before tool pinning keeps its list. Its chosen tools are pinned at the definition the server gives the first time an owner or admin opens the source page, or within the hour by swarmvia's own check, whichever comes first. A member who cannot manage the source does not trigger this by looking. A chosen tool the server does not list at that moment stays chosen and shows under No longer listed by the server; when the server lists it again it shows as new for you to approve. A source that was never narrowed still serves every tool the server lists, and its page says so; choose its tools to pin them. A source with chosen tools cannot go back to serving every tool.

Endpoints

GET   https://{source}.swarmvia.cloud/tools
POST  https://{source}.swarmvia.cloud/tools/call   {"name": "search", "arguments": {"query": "…"}}

Send the access key in X-Swarmvia-Key. GET /tools returns the tools this key may use and the server's own description (without the server's instructions on a source with pinned tools); add ?refresh=1 to list again instead of using the five-minute cache. POST /tools/call returns the server's result as it sent it, including isError: true for a tool that ran and failed.

Each call holds a slot until the server's answer has arrived in full, streamed or not. A cached list takes no slot. Async admission does not apply to MCP sources.

See Admission errors for what each error means.

Moving servers from a harness

Most teams start with MCP servers configured in each person's harness: .cursor/mcp.json, Claude Code, VS Code, Codex. To add them as sources, ask the assistant for the migrate_mcp prompt, or install the plugin's migrate-mcp-to-swarmvia skill. It reads the harness config, sorts servers into ones to move and ones that must stay local (stdio commands, localhost), and moves one at a time: create or reuse the source, give you the link to connect it, check its tools, then remove the old entry from the config with a backup. Tokens never pass through the chat; you add them on the source page. The full procedure is Migrating MCP servers into swarmvia.