MCP Client Quickstart
NOCFoundry exposes the Model Context Protocol at:
http://127.0.0.1:5000/mcp
With the protected validation example, /mcp is protected by OIDC endpoint auth.
What clients need
- the MCP endpoint URL
- an access token whose
audmatches the configured/mcpaudience - support for bearer tokens on HTTP-based MCP transports
The protected resource metadata is served from:
/.well-known/oauth-protected-resource/mcp
Minimal connection model
- Start NOCFoundry with
examples/tools-configs/keycloak-protected-validation.yamlandexamples/server-configs/protected-api-mcp-ui.yaml. - Obtain an access token from Keycloak.
- Configure your MCP client to connect to
http://127.0.0.1:5000/mcp. - Supply
Authorization: Bearer <token>on every HTTP request.
Audience reminder
The access token must match the /mcp audience configured in:
By default that is:
http://127.0.0.1:5000/mcp