Add public read-only MCP server and registry, CORS/content-negotiation, docs, tests, and CI#37
Merged
Trailgenic merged 2 commits intoJul 13, 2026
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Motivation
Description
lib/ella-registry.tsand JSON-LD consolidation viaellaEntityGraph()used byapp/entity.json/route.ts.@modelcontextprotocol/sdkinlib/ella-mcp-server.tsand Zod-based input/output schemas inlib/ella-mcp-schemas.tsregistering tools and resources from the registry./mcproute logic withapp/mcp/route.tsthat delegates tohandleEllaMcpPost, adds origin-based CORS checks driven byMCP_ALLOWED_ORIGINS, enforcesAccept/Content-Typenegotiation, and supportsOPTIONS/GETbehavior.app/system/mcp/page.tsxto use registry constants (server info, protocol versions, canonical ID) and render tool/resource lists and examples.MCP_ALLOWED_ORIGINSto.env.example, a deployment checklistdocs/mcp-deployment.md, and teststests/mcp.test.tsthat exercise CORS, content negotiation, tool and resource semantics, and canonical URL parity.package.jsonto add test tooling and dependencies (@modelcontextprotocol/sdk,tsx,ajv, bumpzod), and add a GitHub Actions CI workflow.github/workflows/ci.ymlto runnpm ci,lint,typecheck,test, andbuildon PRs and pushes tomain.Testing
tests/mcp.test.tsand ran the test suite withnpm testwhich executes the Node test runner against the MCP behavior and schema assertions; the tests passed.npm run lint,npm run typecheck) as part of CI and produced no errors.npm run build) in CI to ensure Next.js assets compile successfully and completed without failure.Codex Task