Vai al contenuto

Discovery and lazy auth

Questi contenuti non sono ancora disponibili nella tua lingua.

Questo comportamento sta cambiando. Aggiornato: 2026-09-02. Dettagli commerciali attuali: uely.ch/preise.

You can connect to Uely’s MCP endpoint with no credential at all, and you should — it is how you find out what is on offer and where to authenticate.

initialize and tools/list answer without a token. So do resources/list, prompts/list and ping.

Terminal-Fenster
curl -s https://api.uely.ch/mcp/ \
-H 'Accept: application/json, text/event-stream' \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'

That returns all 27 tools, whether or not you have a token.

Call a protected tool without a token and the answer is a 401 carrying everything a client needs to recover:

WWW-Authenticate: Bearer error="invalid_token",
error_description="Authentication required for this tool.",
resource_metadata="https://api.uely.ch/.well-known/oauth-protected-resource/mcp",
scope="ask"

Two things matter there. scope names exactly what that tool needs, so you can ask for one scope rather than all nine. And resource_metadata is the path-scoped document — note the /mcp suffix; the bare /.well-known/oauth-protected-resource describes the identity plane and is not what you want.

GET https://api.uely.ch/.well-known/oauth-protected-resource/mcp
→ authorization_servers: ["https://uely.ch"]
GET https://uely.ch/.well-known/oauth-authorization-server
→ authorization_endpoint, token_endpoint, registration_endpoint

The protected-resource document also lists the nine product scopes.

The OpenAPI document is at https://api.uely.ch/openapi.json. Its AgentOAuth2 security scheme carries the same nine scopes with English descriptions.

REST routes on the allowlist behave the same way as MCP tools: no credential gets you a 401 with a WWW-Authenticate naming the scope, not a 404.