Skip to content

feat: enable catalog-pages GET endpoints in MCP - #17

Open
jeff-schnitter wants to merge 2 commits into
masterfrom
feat/catalog-pages-mcp
Open

jeff-schnitter wants to merge 2 commits into
masterfrom
feat/catalog-pages-mcp

Conversation

@jeff-schnitter

Copy link
Copy Markdown

Summary

  • Adds listCatalogPages (GET /api/v1/catalog-pages) and getCatalogPage (GET /api/v1/catalog-pages/{slug}) as MCP tools by setting x-cortex-mcp-enabled: true on their GET operations in swagger.json
  • Adds the CatalogPage and CatalogPageListResponse schemas they depend on

Context

Per product request, all public GET APIs should be accessible via MCP. This wires up the newly-added catalog-pages API endpoints.

Test plan

  • Confirm listCatalogPages and getCatalogPage appear in tool list when server starts
  • Call listCatalogPages via MCP and verify it returns catalog data
  • Call getCatalogPage with a valid slug and verify it returns the correct catalog

🤖 Generated with Claude Code

jeff-schnitter and others added 2 commits September 28, 2026 15:59
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>
@keithfz

keithfz commented Sep 29, 2026

Copy link
Copy Markdown

@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

@ashiramin

Copy link
Copy Markdown
Contributor

We really should have this automated cuz this annoying and painful to do

@jeff-schnitter

Copy link
Copy Markdown
Author

@keithfz - yep, I see it now. The real change here should be in brain-backend to enable the MCP on the API methods:

@MCPFeature(enabled = true)

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants