---
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
    - `tokenEndpointAuthMethodsSupported` string[], nullable, required

## Other responses

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

## Changes

- **2026-08-10** `df25dc580a56` — 1 info
  - added the required property `anyOf[subschema #2]/tokenEndpointAuthMethodsSupported` to the response with the `200` status
- **2026-08-07** `06cac6a7c5bc` — 3 info
  - added the media type `application/json` for the response with the status `200`
  - added the media type `application/json` for the response with the status `400`
  - added the media type `application/json` for the response with the status `404`

[Change history](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/changes/api/mcp-oauth/:mcpServerId/metadata/get.md)

---

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