> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agentarea.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Oauth Authorization Server Metadata

> RFC 8414: serve Hydra's OIDC config at the standard AS discovery path.

Hydra v2 only serves /.well-known/openid-configuration; we bridge the gap
so MCP clients (Cursor) that look for /.well-known/oauth-authorization-server
still get the Hydra endpoints, rewritten to point to our proxy paths.



## OpenAPI

````yaml /api-reference/openapi.json get /.well-known/oauth-authorization-server
openapi: 3.1.0
info:
  description: >-
    Modular and extensible framework for building AI agents. This API requires
    JWT Bearer token authentication for most endpoints. Include your JWT token
    in the Authorization header. Public endpoints include /, /health, /docs,
    /redoc, and /openapi.json.
  title: AgentArea API
  version: 0.1.0
servers: []
security:
  - bearer: []
paths:
  /.well-known/oauth-authorization-server:
    get:
      tags:
        - oauth-as
      summary: Oauth Authorization Server Metadata
      description: >-
        RFC 8414: serve Hydra's OIDC config at the standard AS discovery path.


        Hydra v2 only serves /.well-known/openid-configuration; we bridge the
        gap

        so MCP clients (Cursor) that look for
        /.well-known/oauth-authorization-server

        still get the Hydra endpoints, rewritten to point to our proxy paths.
      operationId: >-
        oauth_authorization_server_metadata__well_known_oauth_authorization_server_get
      responses:
        '200':
          content:
            application/json:
              schema: {}
          description: Successful Response
      security:
        - bearer: []
components:
  securitySchemes:
    bearer:
      bearerFormat: JWT
      description: JWT Bearer token for authentication
      scheme: bearer
      type: http

````