---
title: "Probe OAuth metadata (PRMD + AS) for an MCP server"
method: GET
path: "/api/mcp-oauth/{mcpServerId}/metadata"
tags: ["MCP OAuth"]
---

# Probe OAuth metadata (PRMD + AS) for an MCP server

`GET /api/mcp-oauth/{mcpServerId}/metadata`

## Path parameters

- `mcpServerId` string, required

## Response `200`

OAuth metadata or { requiresOAuth: false }

- union
  - object
    - `requiresOAuth` false, required
  - object
    - `resourceUrl` string, required
    - `authorizationServerIssuer` string, required
    - `authorizeUrl` string, required
    - `tokenUrl` string, required
    - `revocationUrl` string, nullable, required
    - `registrationEndpoint` string, nullable, required
    - `scopes` string[], required
    - `requiresOAuth` true, required
    - `dcrSupported` boolean, required
    - `bearerMethodsSupported` string[], nullable, required

## Other responses

- `400` — MCP has no URL / invalid transport
- `404` — MCP server not found

---

[API](https://skmtc.net/desplega-ai/apis/agent-swarm-api.md) · [All operations](https://skmtc.net/desplega-ai/apis/agent-swarm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/desplega-ai/agent-swarm-api/revisions/e2028c1ef6f5/schema)
