Configs and Profiles

List an MCP server's tools

Changed on

Connects to a remote MCP server over streamable HTTP, negotiates the protocol version (stateless server/discover first, falling back to the initialize handshake for session-based servers), and returns the server's tools/list result. The request is not stored; use it to preview which tools a server exposes before referencing it from an agent config. Authentication mirrors the agent config mcp_servers.<key>.auth shape and resolves secrets available to the project. When the server does not speak MCP, the API responds 422 without an auth hint. When the server or its authorization server does not respond or fails, including a malformed MCP response or a JSON-RPC internal error from the server, the API responds 424; retrying may succeed once the server recovers. When the authorization server rejects the configured OAuth secret, the API responds 422 with an oauth hint so the caller can log in again. When Omnara times out reading or storing discovery state, the API responds 503. When the server rejects the connection with HTTP 401 or 403, the API probes the server's authorization requirements and responds 422 with an auth hint — oauth when the server advertises an OAuth authorization server, bearer when it expects a token but advertises no OAuth metadata. If that probe fails for a non-transient reason, the 422 carries no auth hint.

post/orgs/{orgID}/projects/{projectID}/mcp-servers/tools

Request

  • Base URL
    https://api.omnara.com/v1
  • Auth
    • HTTP bearer
    • or API key in cookie __Host-omnara_session and API key in header X-Omnara-Csrf

Path parameters

orgID, string required

Organization ID (org_...).

projectID, string required

Project ID (proj_...).

Request body

MCPServerToolsRequest required
url, string uri required

Streamable HTTP MCP endpoint.

auth, union required

How Omnara authenticates to the MCP server. Secret references must be available to the project, either owned by it or granted to it.

Response

Tools advertised by the MCP server.

MCPServerToolsResponse required
protocol_version, string required

MCP protocol version negotiated with the server.

server_info, MCPServerInfo required
tools, MCPServerTool[] required

Changes

    • info

      added the optional property current_digest to the response with the status

    • info

      added the optional property current_digest to the response with the status

    • info

      added the optional property current_digest to the response with the status

    202 more changes in this revision