Skip to content

MCP: optional deployment-platform filter for ask_redpanda_question - #197

Open
JakeSCahill wants to merge 1 commit into
mainfrom
feature/mcp-platform-filter
Open

MCP: optional deployment-platform filter for ask_redpanda_question#197
JakeSCahill wants to merge 1 commit into
mainfrom
feature/mcp-platform-filter

Conversation

@JakeSCahill

Copy link
Copy Markdown
Contributor

The CS Slack bot answered a BYOC customer's metrics question with self-managed instructions (redpanda-cluster.yaml edits) even though it knew the account's entitlement. Root cause: it passes the product type into the search query as text, but Kapa retrieval is plain semantic search over the whole corpus — for broker-level topics the self-managed pages dominate the results, and the LLM answers from them. Reproduced directly: "how do I enable a broker metric?" returns 13/15 /streaming/ sections, including the exact wrong-platform yaml the bot quoted.

The docs are already segmented by URL path (/streaming/ = Self-Managed, /cloud-data-platform/ = Cloud, everything else platform-neutral), so this adds an optional platform parameter (cloud | self-managed) to ask_redpanda_question that drops the other platform's sections after retrieval. Neutral docs (Connect, API reference, labs, external sources) are always kept, and unexpected payloads (errors, upstream shape changes) pass through untouched. No behavior change when the param is omitted.

Tested with npx vitest run platform-filter.test.ts (7 tests). Pairs with the redsquadron-side change in internal-agents that applies the same filter in the bot's pipeline.

Kapa search is plain semantic retrieval over the whole docs corpus, so a
broker-level question from a cloud user comes back dominated by
self-managed (/streaming/) sections, and downstream LLMs answer from the
wrong platform's docs. The docs are cleanly segmented by URL path, so
when the caller knows the deployment platform we can drop the other
platform's sections and keep everything neutral (Connect, API, labs,
external sources).

Adds an optional 'platform' param ('cloud' | 'self-managed') to
ask_redpanda_question, filters both the initial call and the retry, and
passes unexpected payload shapes through untouched. Bumps the server to
1.2.0.
@JakeSCahill
JakeSCahill requested a review from a team as a code owner July 29, 2026 11:09
@netlify

netlify Bot commented Jul 29, 2026

Copy link
Copy Markdown

Deploy Preview for redpanda-documentation ready!

Name Link
🔨 Latest commit fb8de76
🔍 Latest deploy log https://app.netlify.com/projects/redpanda-documentation/deploys/6a69df6c6d4916000827cd34
😎 Deploy Preview https://deploy-preview-197--redpanda-documentation.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 82 (🔴 down 3 from production)
Accessibility: 93 (🔴 down 1 from production)
Best Practices: 92 (no change from production)
SEO: 83 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

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.

1 participant