Repository navigation
Agent discovery: server card, AI catalog, API catalog, skills index - #16
Merged
Merged
Conversation
The root /.well-known/oauth-protected-resource document named /mcp as its resource. RFC 9728 §3.3 requires the resource to match the URL the document was fetched for, so scanners rejected it. The root document now names the origin. The /mcp document still names /mcp, and the 401 from /mcp still points clients there. New documents under /.well-known/, each pointing agents at /mcp: - mcp/server-card.json: MCP Server Card, plus the SEP-1649 draft fields scanners read (serverInfo, transport, capabilities) - ai-catalog.json: ARD catalog with one entry for the server card - api-catalog: RFC 9727 linkset with /mcp as the only API - agent-skills/index.json and agent-skills/openprofit/SKILL.md: the agents doc as a skill, with the SHA-256 digest of the served bytes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes five failing checks on isitagentready.com.
OAuth protected resource metadata
The root
/.well-known/oauth-protected-resourcedocument named/mcpas itsresource. RFC 9728 §3.3 requires the resource to match the URL the document was fetched for, so scanners rejected it. The root document now names the origin./.well-known/oauth-protected-resource/mcpstill names/mcp, and the 401 from/mcpstill points clients there, so MCP sign-in is unchanged.New documents under
/.well-known/Each one points agents at the MCP server at
/mcp. They live insrc/server/discovery.server.ts.mcp/server-card.jsonserverInfo,transport,capabilities)ai-catalog.jsonapi-catalog/mcpas the only APIagent-skills/index.jsonagent-skills/openprofit/SKILL.mdLeft out
Testing
npx tsc --noEmitandpnpm checkpassAPP_URL=https://openprofit.dev: all six paths answer 200 with the expected content types, the SKILL.md hash matches the index digest, andPOST /mcpwithout a token still returns the 401 that names/.well-known/oauth-protected-resource/mcppnpm dev, Vite answers.mdpaths itself, so SKILL.md returns 404 there. Production serves itAfter deploy, rerun the scan on isitagentready.com to confirm the five checks pass.