feat: LLM readability layer — llms.txt, serve-markdown, MCP discovery, and CDN caching#329
Open
Nonnyjoe wants to merge 4 commits into
Open
feat: LLM readability layer — llms.txt, serve-markdown, MCP discovery, and CDN caching#329Nonnyjoe wants to merge 4 commits into
Nonnyjoe wants to merge 4 commits into
Conversation
5 tasks
…rver content negotiation, and broken link fixes
ffe95b4 to
6419fcf
Compare
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.
Summary
llms.txtto cover all sitemap URLs with correct.mdlinks and AI agent instructionsskill.md, MCP discovery endpoint (/.well-known/mcp), and a visually-hidden llms.txt link in every page bodyplugins/serve-markdown.js— serves raw.mdat build time alongside HTML, handles generated-index pages, and supportsAccept: text/markdowncontent negotiation in the dev servercustomHttp.yml) and Amplify rewrite rules (amplify.yml) so.mdfiles,llms-full.txt,skill.md, and the MCP endpoint are served correctly without being intercepted by the SPA fallbackWhat is NOT in this PR
The Amplify Gen 2 CDK backend (CloudFront distribution + Lambda function) lives in a separate PR (
feat/amplify-lambda) that will be monitored on staging before merging.Test plan
https://docs.cartesi.io/llms.txt— all links end with.mdand resolvehttps://docs.cartesi.io/cartesi-rollups/overview.md— returns raw markdown directlyhttps://docs.cartesi.io/skill.md— resolveshttps://docs.cartesi.io/.well-known/mcp— returns JSONcurl -H "Accept: text/markdown" https://docs.cartesi.io/cartesi-rollups/overview— returnsContent-Type: text/markdownCache-Controlheaders correct per file type (assets immutable, html/md short TTL)Related to #328