Repository navigation
feat: agent readiness: Markdown negotiation, OpenAPI, OAuth metadata, JSON API 404s, MCP discovery - #26
Merged
implemented.stream (thanabartbb) merged 6 commits intoOct 15, 2026
Conversation
Add Markdown negotiation (homepage + 404), OpenAPI, OAuth metadata, structured JSON API errors, MCP GET discovery, trust pages, JSON-LD, llms/agent instructions, and footer discoverability links.
…ngelog; cover new routes in middleware
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 27f22f4:
|
…r serve them to browsers
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.
Agent readiness (Is Agentic / Ora audit), from a Cursor agent (d260c0d), with current
main(687ec63) merged in.What it adds
/and unknown paths return Markdown forAccept: text/markdown, withVary: Accept/openapi.json, which is static and contains no secrets or env values, plus/.well-known/oauth-authorization-serverand/.well-known/oauth-protected-resource/api/*returns a JSON 404; MCP returns structured errorsGET /mcpdiscovery and a richer/.well-known/mcp/agent-instructions.txtand an expandedllms.txt/aboutand/contactpages; homepage JSON-LD, canonical and og:imageMerge resolution
src/app/privacy/page.tsx: kept main's feat(footer): footer menu, cookie preferences and placeholder pages #17 page. Cursor's duplicate was dropped.header.tsx): kept main's feat(footer): footer menu, cookie preferences and placeholder pages #17 legal row, Cookie Preferences and copyright. Added About and Contact to it. Restored the Agents link that the Cursor branch had removed.sitemap.ts: union of both lists, no duplicates.CHANGELOG.md: kept both sets of entries.i18n.ts: removed the duplicatefooter.legalkey (a TS1117 error) and the now-unusednav.privacykey./api/cli,/api/connections,/api/deploymentsand/api/projects, and the site paths/support,/status,/careers,/terms,/security,/settings/cli,/settings/connections,/projects,/projects/:id,/setup.shand/design/chat-stream. A new test checks that everypage.tsxandroute.tsis known to the middleware, so future routes can't silently return 404.Verification (Node 20)
npm ci, lint, typecheck and
next buildall pass; 350/350 tests pass. Localnext startcurl checks:/returns 200 Markdown forAccept: text/markdown; an unknown path returns 404 Markdown;/api/not-a-routereturns a JSON 404;/openapi.jsonand all three/.well-known/*return 200 JSON;GET /mcpreturns 200 JSON;/setup.shreturns 200 shellscript, including withAccept: text/markdown;/api/auth/githubreturns 302;/api/cli/whoamiand/api/projectsreturn 401 JSON from the real handlers.Not deployed. Re-run the Ora probes on production after deploy.