feat: enable catalog-pages GET endpoints in MCP - #17
Open
jeff-schnitter wants to merge 2 commits into
Open
jeff-schnitter wants to merge 2 commits into
jeff-schnitter wants to merge 2 commits into
Conversation
Add listCatalogPages and getCatalogPage to the MCP server by setting x-cortex-mcp-enabled: true on their GET operations in swagger.json. Also adds the CatalogPage and CatalogPageListResponse schemas they depend on. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
jeff-schnitter
force-pushed
the
feat/catalog-pages-mcp
branch
from
September 29, 2026 15:53
d32b018 to
0c45a31
Compare
|
@jeff-schnitter it might make sense to do a full regen rather than a targeted one, i think this might be out of date with some other changes i recently made to the api specs |
Contributor
|
We really should have this automated cuz this annoying and painful to do |
Author
|
@keithfz - yep, I see it now. The real change here should be in brain-backend to enable the MCP on the API methods: Then pull openapi.json from cortexapps/schemas. Since the build of the openapi is automated we just need one more step to push to this repo and cortexapps/brainpower (our new docs repo) while we're at it. |
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
listCatalogPages(GET /api/v1/catalog-pages) andgetCatalogPage(GET /api/v1/catalog-pages/{slug}) as MCP tools by settingx-cortex-mcp-enabled: trueon their GET operations inswagger.jsonCatalogPageandCatalogPageListResponseschemas they depend onContext
Per product request, all public GET APIs should be accessible via MCP. This wires up the newly-added catalog-pages API endpoints.
Test plan
listCatalogPagesandgetCatalogPageappear in tool list when server startslistCatalogPagesvia MCP and verify it returns catalog datagetCatalogPagewith a valid slug and verify it returns the correct catalog🤖 Generated with Claude Code