Skip to Content

Add an MCP server

A remote MCP server can be governed just like any other platform. Once you add it, its tools become grantable scopes, and your agents reach it only through AgentValet. For the concepts behind this, see MCP servers as platforms.

Open the Add-server dialog

Go to Platforms in the sidebar. At the top right, click + Add MCP server. A dialog titled Add MCP server opens.

You will see two tabs: Paste config and Manual.

For an OAuth-protected server, use the Manual tab. The paste-config tab does not detect OAuth and will send you down the static-secret path instead.

Enter the server

On the Manual tab, fill in:

  • MCP server URL (for example https://mcp.example.com/mcp)
  • Display name (optional)

Click Continue. AgentValet probes the server to discover its tools and how it authenticates.

If the server uses OAuth

When the probe detects OAuth, the dialog moves to an authorization step:

  1. Under Which agent?, choose the agent that should be authorized. Only active agents appear here; if you have none, create one first.
  2. Click Authorize. Your browser is sent to the provider’s own consent screen.
  3. Approve on the provider’s screen. You are returned to the Platforms page.

On a successful return you will see the toast “MCP server connected. Grant its tools to the agent from its detail page.” The agent now has its own token for that server, stored in the vault.

A few honest limitations:

  • OAuth works only for servers that support automatic client registration. A server without it returns “This server doesn’t support automatic OAuth registration.”
  • The optional display name is usually not kept on the OAuth path; the server’s host is used as the name.
  • Demo workspaces cannot connect external servers, and the connection counts against your plan’s platform limit.

If the server uses a static secret

When the probe finds token, header, or query-key auth (or you skip detection), the dialog shows an auth step where you choose None, Bearer token, Custom header, or API key in URL query and enter the secret. Click Test connection. On success you see “Connected” with the number of tools available, and a Done button. Any secret you enter is encrypted in the vault; agents never see it.

Grant the tools to an agent

Adding the server does not grant anything on its own. Open the agent’s detail page and grant the specific tools (scopes) you want it to use. See Configure an agent’s permissions.

If an agent that is granted on an OAuth MCP server tries to use it before anyone has authorized AgentValet with that server, the call is refused with needs_consent, an access request is raised, and the link to finish it lands in three places: the agent’s own result (so the person in the conversation can open it), the admins’ notifications, and the admins’ email.

  1. Open the link (app.agentvalet.ai/connect?token=...), or find the request under Notifications.
  2. The page names the agent, the server and its URL. Click Authorize. Your browser is sent to the server’s own consent screen.
  3. When it returns, the page confirms the server is authorized and the request is closed. The agent’s held call resumes on its own where the client supports it; otherwise ask the agent to try again.

Authorizing AgentValet with an OAuth server is an admin action. A member who opens the link is told an admin has been notified. The token is stored for the workspace; the agent never sees it, and it can still do nothing beyond what it was granted.

Agents see this state before they call: list_platforms marks such a server with needsConsent: true, so a well-behaved agent asks for the authorization first instead of finding out by failing.

Next

Last updated on