MCP Servers page
The MCP Servers page is where you register MCP servers with the gateway, configure how the gateway authenticates to each one, choose which tools clients may call, bundle tools into toolsets, review servers that team members submitted, watch live sessions and tune the gateway-wide MCP settings. Open it at /ui/mcp-servers. It sits in the left nav in the AI Gateway group, after Agentic and before Skills. Every signed-in role sees the nav entry unless an admin limits the pages non-admin users can see with the enabled_ui_pages_internal_users UI setting. The page has no license gate, except that the hosted admin MCP server card on the Connect tab depends on the admin_mcp license feature. What you can do depends on your role, and the section on roles at the end sums it up. The concepts behind the page are in the MCP gateway section, and this page follows the controls.
A real-world scenario
A platform admin wants the support team's assistant to search Jira. On this page they click + Add New MCP Server, pick Atlassian from the catalogue, enter the credential and watch the Connection Status card list the tools. They untick everything that writes in Tool Configuration, save, and on the Toolsets tab bundle the two search tools into a support-agent toolset. On the Connect tab they copy the client snippet for the team. A week later the Live Connections tab shows twelve sessions from the team's desktop clients, and a Submitted MCPs card from a developer asks for a documentation search server, which the admin approves after checking the compliance panel.
Add a server
-
Click + Add New MCP Server. The Add MCP Server catalogue opens. Pick a connector row, or click + Custom Server for an empty form. Each row carries a Verified or Unverified badge. Verified means the service's own vendor publishes the server and Spanway checked it. Unverified means someone else publishes it or it is not tested end to end yet, so try it with one user first. Hover the badge to see who publishes the server, see trust tiers.
-
Fill in MCP Server Name, keep or change the Transport Type, enter the MCP Server URL and open Authentication settings to choose the Authentication type and its value. For a connector the transport, URL and auth type are already filled in and a note says the server starts read-only.
-
The Connection Status card connects and lists the tools. In Tool Configuration, untick the tools users must not call. Set the Default Cost per Query ($) under Cost Configuration if tool calls should carry a cost.
-
Click Add MCP Server. Expected result: the toast reads "MCP Server created successfully" and a card appears in the grid, with a Healthy badge once the first health check passes. The same request from a terminal:
curl -X POST http://localhost:4000/v1/mcp/server \-H "Authorization: Bearer $SPANWAY_MASTER_KEY" -H "Content-Type: application/json" \-d '{"server_name": "jira", "url": "https://mcp.atlassian.com/v1/mcp", "transport": "http", "auth_type": "bearer_token", "credentials": {"auth_value": "os.environ/JIRA_MCP_TOKEN"}, "allowed_tools": ["search_issues", "get_issue"]}'{"server_id": "8f1c2d3e-4b5a-4c6d-9e7f-0a1b2c3d4e5f", "server_name": "jira", "alias": "jira", "url": "https://mcp.atlassian.com/v1/mcp", "transport": "http", "auth_type": "bearer_token", "allowed_tools": ["search_issues", "get_issue"], "created_by": "admin"}
Import from JSON opens Import MCP Connectors, where you paste an mcpServers mapping from a client config file or an mcp_servers array from the Anthropic Messages API and click Import. The dialog lists the servers under Imported, Skipped with the reason and Failed with the error, which is the answer of POST /v1/mcp/server/import.
Page header and tabs
The header reads MCP Servers with the subtitle "Configure and manage your MCP servers" and a badge with the number of servers the current filters match.
| Control | Who sees it | What it does |
|---|---|---|
| My Connections | Everyone | Opens /ui/connect, where you manage your own connections to MCP servers. |
| Import from JSON | Proxy admins who are not view-only | Opens the Import MCP Connectors dialog. |
| + Add New MCP Server | Proxy admins who are not view-only | Opens the Add MCP Server catalogue dialog. |
| + Submit MCP Server | Roles that are neither proxy admins nor view-only | Opens the server form in submission mode. The server goes to the admin review queue instead of going live. |
| Read-only note | Proxy admin viewers and internal viewers | Reads "Read-only access. Only a proxy admin can add, import or delete MCP servers." |
| Tab | Who sees it | What it holds |
|---|---|---|
| All Servers | Everyone | The server grid and, after you click a card, the server detail view. |
| Toolsets | Everyone | Named bundles of tools from one or more servers. |
| Connect | Everyone | Copyable connection snippets for MCP clients. Proxy admins and proxy admin viewers also see the hosted admin MCP server card. |
| Semantic Filter | Proxy admins and proxy admin viewers | Gateway-wide semantic tool filtering. |
| Tool Search | Proxy admins and proxy admin viewers | Settings for the mcp_tool_search virtual tool. |
| Network Settings | Proxy admins and proxy admin viewers | Private IP ranges and the allowed client list. |
| Submitted MCPs | Proxy admins and proxy admin viewers | The review queue for servers that non-admins submitted. |
| Live Connections | Proxy admins and proxy admin viewers | Stateful MCP sessions open on the current proxy worker. |
| Access Settings | Proxy admins, not in view-only mode | What non-admin users see on this page and the MCP protocol revisions the gateway offers. |
Org admins do not see the admin-only tabs, because the page checks the session role and the org admin session role is not an admin role there.
All Servers tab
A filter bar sits above the grid with a Team dropdown (All Servers, Personal, or a team), an Access Group dropdown, a search field that matches name, alias, URL and server id, and a Sort dropdown (Recently created, Recently updated, by name, or Health (unhealthy first)). The count reads "N of M servers".
Each server is a card. Clicking it opens the server detail view. The card shows the logo or the first two letters of the name, the name, the alias, the first seven characters of the server id and one identifying line, the command for stdio servers, the spec URL for OpenAPI servers and the URL otherwise. A URL that carries a token after /mcp/ is masked.
| Badge | Meaning |
|---|---|
| Healthy, Reachable, Unhealthy, Unknown, Checking | The last health check passed, the server answered without auth and tools being checked, the check failed (the tooltip shows the error), there is no health data yet, or a check is running. Clicking the badge rechecks. |
| HTTP, SSE, STDIO or OPENAPI | The transport. |
| Auth type | The raw auth type value, such as none, oauth2 or aws_sigv4. |
| stdio disabled | A stdio server on a proxy where stdio is off. Set SPANWAY_ENABLE_MCP_STDIO=true and restart. |
| OAuth flow not set | An OAuth server that was never classified as Machine-to-Machine or Interactive. Open it and choose an OAuth Flow Type. |
| All Networks or Internal Only | Whether the server accepts requests from public addresses, or only from the internal ranges. |
| Access group names | The first two MCP access groups, then +N. |
The card footer shows BYOK credential with Connect on bring your own key servers, Per-user credentials with Set or Update on servers with per-user variables, and a red border with "N user fields missing" when yours are not filled in. The Server actions menu holds Test Connection and, for proxy admins who are not view-only, Delete, which opens "Delete MCP Server?" and removes the server after confirmation with the toast "Deleted MCP Server successfully".
Add New MCP Server form
Proxy admins see Add New MCP Server. Everyone else who can open it sees Submit MCP Server for Review and a note that the submission goes to admin review and must be made with a team-scoped API key. The fields are the same in both modes.
| Field | Rules and effect |
|---|---|
| MCP Server Name, Alias | No hyphens or spaces, use underscores. The alias copies the name until you type in it. A name or alias that matches another server you can see, ignoring case, blocks the save with "An MCP server with this name/alias already exists." |
| Description, Logo, GitHub / Source URL | Optional. The logo shows on the admin and chat pages, and the source URL can be required by the submission rules. |
| Transport Type | Streamable HTTP (Recommended), Server-Sent Events (SSE), Standard Input/Output (stdio) or OpenAPI Spec. Changing it clears the fields of the other transports. |
| MCP Server URL | Required for HTTP and SSE, starting with http:// or https://. On a custom server, when a proxy admin types an https:// address that a catalogue template serves, a box below the field names the template and its tier and offers Use the |
| Max Concurrent Requests (optional), RPM limit (all callers) | The most tool calls the gateway runs against this server at once, and the most requests per minute across every caller. Blank means no limit. |
| OpenAPI Spec URL, Popular APIs | Shown for OpenAPI Spec. See OpenAPI specs as MCP tools. |
| BYOK (Bring Your Own Key), Access Description, API Key Help URL | Shown for HTTP, SSE and OpenAPI servers. Off by default, so every caller uses the server's own credentials. With the switch on, each user brings their own API key for the server, stored per user and never shared, and the shared credential is no longer used for this server. Pair it with the API Key or Bearer Token auth type. A user who has not stored a key yet sees a {server}-connect tool on the aggregate /mcp endpoint, see lazy authentication and per-user credentials. |
| Stdio Configuration (JSON) | Shown for stdio. Paste the full mcpServers structure or the inner object with command, args and env. Invalid JSON blocks the save. |
| Authentication | None, API Key, Bearer Token, Token, Basic Auth (each with an Authentication Value), OAuth, OAuth Token Exchange (OBO), ID-JAG (Okta Cross App Access), AWS SigV4 (Bedrock AgentCore MCPs), True Passthrough (no Spanway auth) or OAuth Delegate (client-supplied upstream token). Each shows its own fields, described in MCP OAuth and MCP with AWS SigV4. |
| Variables | Rows of Variable Name, Value / Description and Scope (Instance or Per-user), referenced as ${VAR_NAME} in static headers or the authentication value. |
| Permission Management / Access Control | Allow All Spanway Keys (off by default: only the keys, teams and access groups you grant can use the server. On: every key on the gateway can use it and the credentials it holds, so turn it on only for tools that are safe for everyone), Internal network only, Delegate auth to upstream (PKCE passthrough) (OAuth only), OAuth pass-through (auth type None with Authorization in extra headers), MCP Access Groups, Extra Headers and Static Headers. See access control. |
| Connection Status | Appears once a URL or spec URL is set. Reads "Testing connection to MCP server...", then "Connection successful" with the tools, or "Connection failed" with the error, a Stack Trace toggle and Retry. Interactive OAuth and the passthrough modes need a token from the authorize button first. For submitters it reads "Ready to submit" with "Tool preview unavailable". |
| Tool Configuration | The tools the preview found, grouped by Risk Groups (Read, Create, Update, Delete, Other) or as a Flat List. Only checked tools are callable. The pencil button sets a Display Name and Description override. |
| Cost Configuration | Default Cost per Query ($) and Tool-Specific Costs ($) for spend tracking. |
Add MCP Server saves and reads "Creating...". A proxy admin's server goes live with "MCP Server created successfully", a submission shows "MCP Server submitted for admin review". Cancel discards everything. The form state survives the redirect of an OAuth authorization.
OAuth fields
OAuth Flow Type starts at Interactive (PKCE), one token per user. Machine-to-Machine (M2M) needs Client ID, Client Secret and Token URL. Interactive servers take optional Client ID, Client Secret, Issuer, Authorization URL, Token URL, Registration URL, Token Validation Rules (a JSON object checked against the token response) and Token Storage TTL. Both flows take Token Endpoint Auth Method, Scopes, Resource Indicator and Token Header. Authorize & Fetch Token runs the flow in your browser and holds the token for this session so the form can list tools. Changing the URL, auth type, flow, client, scopes, issuer or any endpoint after you authorize throws the held token away. The token exchange, ID-JAG and AWS fields, and the passthrough section with its Gateway-hosted sign-in (DCR bridge) switch, are described in MCP OAuth. The DCR bridge switch starts on when you add a server in this form, while a server created through the API has it off unless you send dcr_bridge: true.
Server detail view
Clicking a card opens the detail view. Back to All Servers returns to the grid. The header shows the name, alias, server id with copy buttons, and the description.
| Tab | Who sees it | What it holds |
|---|---|---|
| Overview | Everyone who can open the server | Transport, Authentication and Host URL cards, the Cost Configuration card and, for connector servers, the Tool access card with the Read-only patterns, the Enabled write tools, an "Exact tool name" field and Enable write tool, see connector catalogue. |
| MCP Tools | Everyone who can open the server | The Pinned tools card (Live catalogue or "Pinned, N tools", with Pin current tools, Re-pin current tools and Unpin for proxy admins), the Available Tools list with search, and the Tool Testing Playground, where Call Tool really calls the tool on the upstream server with your Input Parameters. An Authorize button appears when the server needs your own token. |
| Settings | Proxy admins and proxy admin viewers | The stored settings, and Edit Settings, which opens the edit form with Server Configuration and Cost Configuration tabs. Masked fields read "leave blank to keep existing". The BYOK switch is shown in the edit form for HTTP, SSE and OpenAPI servers, so an existing server can be switched to per-user keys. Changing the URL requires entering the secret again in the same save and clears every user's stored values for the server. Save Changes shows "MCP Server updated successfully". Servers from the config file show "Defined in config. Edit your YAML configuration to make changes". |
| User Credentials | Proxy admins and proxy admin viewers | Every user's stored OAuth2 token or BYOK API key for this server with User, Type, Connected, Expires and Updated, and Revoke for proxy admins, which deletes the credential so the user's next request fails until they connect again. |
The BYOK connect dialog (Connect on a card) explains the Requested Access, then asks for the API key, and Connect & Authorize stores it encrypted for your account. The card only reads Connected once the gateway confirms the key was stored. The Set your credentials dialog (Set or Update) lists the per-user variables, marks the ones already Set, never shows saved values back and saves with Save Credentials. A link with ?fill_env_vars=<server id> opens it directly.
Toolsets tab
MCP Toolsets are curated collections of tools from one or more servers, assigned to keys and teams through the MCP permissions picker. The table has Toolset ID, Name, Description, Tools, Created and an actions menu with Copy endpoint URL, Copy toolset ID and, for proxy admins, Edit and Delete. New Toolset opens a dialog with Toolset Name, Description, an Available Tools list where you search servers, expand one and click tools, and a Your Toolset list. Create Toolset shows "Toolset created". The How toolsets work box shows a copyable client config that points at /toolset/<toolset-name>/mcp. See toolsets.
Connect tab
Proxy admins and proxy admin viewers first see the Hosted admin MCP server card with an On or Off badge and an Enterprise badge. When the license lacks admin_mcp it says the server cannot be turned on and to ask sales@spanway.ai. When it is off it says to set SPANWAY_ENABLE_ADMIN_MCP=true and restart. When it is on it shows the URL to point a client at, whether clients sign in with OAuth or send a key (a personal proxy admin key, or their own virtual key when the minimum role is lower), which roles may connect as set by SPANWAY_ADMIN_MCP_MIN_ROLE, and whether only read tools are exposed. See admin MCP server.
Connect to your MCP client offers four tabs with copyable snippets. OpenAI API calls the OpenAI Responses API with this gateway as an MCP server, Spanway Proxy shows the virtual key, the gateway's /mcp URL and a Responses API call through the gateway, Cursor says to open ~/.cursor/mcp.json or the project's .cursor/mcp.json and shows a JSON config that reads the key with ${env:SPANWAY_API_KEY}, so Cursor must be started where that variable is set, and Streamable HTTP shows the /mcp URL and the x-spanway-api-key header for any HTTP MCP client. A switch adds an x-mcp-servers header that limits the tools to named servers or access groups.
Semantic Filter and Tool Search tabs
Semantic Filter holds Enable Semantic Filtering, Embedding Model, Top K Results, Similarity Threshold and Save Settings, plus a Test Configuration card that sends a real Responses API request and reads "N of M tools selected". Tool Search holds Embedding Model (clear it for keyword matching), Top K Results, Similarity Threshold, Always Returned First and Save Settings. Changes apply across all pods within about ten seconds. See tool filtering and tool search.
Network Settings tab
Private IP Ranges defines your private network as CIDR chips, with a one-click button that adds your current /24. With no ranges the gateway uses 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16 and 127.0.0.0/8. Allowed Clients limits which MCP client applications may use the gateway. Add client asks for an Alias and the exact Value, and a client is identified by the claim named in spanway_jwtauth.mcp_client_id_jwt_field or, for clients without a JWT, by the Client Identity Header (less secure). Save writes the settings that changed with the toast "MCP network settings saved". See access control.
Submitted MCPs tab
Submission Rules is a collapsible panel where you tick the fields a submission must have, grouped as Documentation (Description, Alias), Source (GitHub / Source URL), Connection (Server URL) and Security (Auth configured), and Save Rules stores them. The rules add pass and fail marks on each card, they do not block approval. Counters show Total Submitted, Pending Review, Active and Rejected, with a search field and a status filter.
-
Open a pending card. It shows the submitter, the fields and a compliance panel with Passes or Missing per rule.
-
Click Approve and confirm in "Approve MCP Server". Expected result: the badge turns Active and the submitter sees the server in their list. Reject opens "Reject MCP Server" with an optional reason, and rejecting an active server removes it from the proxy runtime at once. Re-approve activates a rejected server again. The same approval with the API:
curl -X PUT http://localhost:4000/v1/mcp/server/8f1c2d3e-4b5a-4c6d-9e7f-0a1b2c3d4e5f/approve -H "Authorization: Bearer $SPANWAY_MASTER_KEY"
Live Connections tab
Live Connections shows the stateful Streamable HTTP sessions open on the proxy worker that answered the request, refreshing every 15 seconds. Counters show Live sessions, AI clients and Users, and the table has Session, Client, User, Key alias, Team, Client IP, Idle and In flight. Proxy admins get Disconnect on each session and Disconnect all for each user, which open "Disconnect MCP session" and force-close the sessions on this worker. The client then sends a new initialize request, which runs authentication again. Sessions on other workers are not shown. This is GET and DELETE /v1/mcp/sessions, see access control.
Access Settings tab
Proxy admins who are not in view-only mode see this tab. It sets what users without an admin role see on the MCP Servers page and which MCP protocol revisions the gateway offers to clients.
| Control | What it does |
|---|---|
What non-admin users see (user_mcp_management_mode) | Default: only servers the user can access leaves the setting unset. Restricted shows only the servers the user's keys and teams can reach. View all shows every server, read only. |
Protocol revisions offered to clients (mcp_advertised_versions) | One checkbox per MCP protocol revision, from 2024-11-05 to 2026-07-28 ("Modern protocol, opt in only"). Only the ticked revisions are offered during the MCP handshake, and a client that asks for another revision is refused. "Nothing ticked keeps the default: every completed revision before 2026-07-28." |
A row the config file sets is locked with "Set in the proxy config file. Change it there, the dashboard cannot override it." Save saves only the changed rows and shows "Access settings saved".
Scenario: an older MCP client in your company breaks on the newest protocol revision. A proxy admin ticks only 2025-06-18 and 2025-11-25, so the gateway never offers the revision that client cannot handle.
- Open MCP Servers and click the Access Settings tab.
- Under Protocol revisions offered to clients, tick the revisions to offer.
- Click Save.
Expected result: "Access settings saved" appears and new MCP sessions negotiate one of the ticked revisions. From the command line:
curl -sS -X POST "http://localhost:4000/config/field/update" \
-H "Authorization: Bearer $SPANWAY_API_KEY" -H "Content-Type: application/json" \
-d '{"field_name": "mcp_advertised_versions", "field_value": ["2025-06-18", "2025-11-25"], "config_type": "general_settings"}'
Errors you may see when saving:
| Status | Message | Meaning and fix |
|---|---|---|
| 400 | Admin-only endpoint. Not allowed to access this. | Only a proxy admin can change gateway settings. Sign in as one. |
| 400 | A message that the key is set in the config file | The setting is owned by config.yaml. The row shows "Set in the proxy config file" and is locked. Change it in the file and restart. |
| 400 | DB not connected. This endpoint needs a database... | The gateway has no database, so dashboard changes cannot be stored. Connect one, or set the value in config.yaml. |
Each save writes an audit row for general_settings with the values before and after, when audit logs are on.
Errors
| Where | What you see | Meaning and fix |
|---|---|---|
| Grid | "No MCP servers configured. Click '+ Add New MCP Server' to get started." | Add or submit a server. |
| Grid | "No servers match the current filters or search." or an empty grid with Personal selected | Clear the search, or use All Servers or a team. |
| Catalogue | "Failed to load servers" with the error, or "No servers found." | Use + Custom Server or Add a custom server. |
| Form | "An MCP server with this name/alias already exists." | Pick another name. |
| Form | "Invalid JSON in stdio configuration", or the banner "stdio is disabled on this proxy" | Fix the JSON, or have an operator set SPANWAY_ENABLE_MCP_STDIO=true and restart. |
| Form | "Connection failed" with the error and a Stack Trace toggle | Check the URL, the credential and whether the gateway can reach the server. "Tool preview unavailable" for submitters is expected, the submission can still be sent. |
| Form | "Error creating MCP Server" or "Error submitting MCP Server" with the reason | For example a required submission field is empty, or a non-admin used a key that is not team scoped. Fix the field the message names. |
| Detail view | "Error" with the message in the tool list, and Authorize shown again after a 401 | Authorize again or fix the server's auth. |
| Detail view | "Could not change the pinned tools" | Check the server is reachable and lists a tool. Config-file servers cannot be pinned. |
| Edit form | "Failed to update MCP Server" with the reason, for example that a changed address needs the secret entered again | Enter the credential in the same save. |
| Delete | The dialog closes and the server stays | Reload and check the proxy logs. |
| Toolsets | A failed save shows the gateway's message, for example "A toolset named 'support-agent' already exists.", and the dialog stays open | Pick another name, or check you are a proxy admin. |
| Semantic Filter, Tool Search | "No embedding models available" | Add an embedding model on Models + Endpoints. |
| Network Settings | A red note that every client is currently denied | The stored allow list is empty or malformed. Add a client or clear the list. |
| Admin MCP card | "Could not read the admin MCP server status." | Reload, or check that your role can read gateway settings. |
| Any write as an admin viewer | The gateway refuses the save with a 403 | Writes need a proxy admin session. |
Logs
The MCP Servers page itself writes nothing to the gateway log. These lines, which a gateway admin can read, explain what you see on the page.
| Level | Line | Meaning | Action |
|---|---|---|---|
| ERROR | MCP server <id> created but in-memory registry refresh failed: <error> | A server you added was saved, but this gateway instance has not loaded it yet, so it may be missing from the list or the Connect tab for a moment. | None unless it repeats. Reload the page. |
| WARNING | MCP server '<name>' will not start: stdio MCP servers are disabled ... | A stdio server is configured while SPANWAY_ENABLE_MCP_STDIO is off, so it shows no tools. | Turn stdio on, or remove the server. |
| WARNING | spanway.proxy.mcp_server.toolset_db::list_mcp_toolsets - <error> | The Toolsets tab came back empty because the database could not be read. | Check the database. |
Every MCP line is in the log reference.
Differences by role and license
| Role | What changes |
|---|---|
| Proxy admin | Everything on the page. Adds servers directly, imports, deletes, edits, pins, revokes credentials, manages toolsets, approves submissions, disconnects sessions and saves the gateway-wide MCP settings. |
| Proxy admin viewer | Sees every tab and the read-only note. Cannot add, import, delete, edit, pin, revoke or disconnect, and those controls are hidden or disabled. Save and review buttons that still show are refused by the gateway. |
| Internal user and org admin | See All Servers, Toolsets and Connect only. + Submit MCP Server sends servers for review, the tool preview may be refused, and server URLs are hidden. They can open a server's Overview and MCP Tools tabs, authorize their own OAuth connections, connect BYOK keys and fill in per-user variables. |
| Internal viewer | Same tabs as an internal user, with the read-only note in place of + Submit MCP Server. |
The enabled_ui_pages_internal_users UI setting can hide the whole page from non-admin roles. The hosted admin MCP server needs the admin_mcp license feature, and write tool changes on connector servers are audited whenever audit logging is on, which is the default on licensed gateways and can be set with spanway_settings.store_audit_logs on any gateway. Reading the audit log needs a license.
Related
- MCP gateway for registering servers and connecting clients.
- MCP access control for grants, client allow lists, networks, submissions and sessions.
- MCP OAuth and per-user credentials for the authentication fields and connect dialogs.
- MCP toolsets, connector catalogue and tool filtering for the Toolsets, Tool access and filter tabs.
- Admin MCP server for the Connect tab card.
- MCP tools over REST for the test routes the form calls.