Repository navigation
feat: connect to the fixed StackGuardian MCP URL per region - #3
Conversation
The plugin directory refuses MCP URLs with ${...} variables. Point
stackguardian-eu and stackguardian-us at /api/v1/mcp and drop the org
setting: the organization is now chosen on the consent page.
Merge only after, in both prod regions: /api/v1/mcp is live, api serves
its protected-resource metadata, the api pin carries core's dotted grant
tokens, and the end-to-end sign-in check (Claude Code and a claude.ai
custom connector) has passed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
🤖 AI review (GPT-6.1)Verdict: a few issues; no runtime blockers found. auth#225 — feat: authorize grant tokens on the org-less /api/v1/mcp route
sg-clickhouse-mcp#78 — feat: serve the MCP on the org-less /api/v1/mcp routeNo serious findings. The fixed-route middleware runs before path rewriting, rejects duplicate context headers and unauthenticated contexts, and prevents the direct identity header from replacing a present gateway context. The deployed Lambda Web Adapter’s context-header handling remains a live verification requirement; local tests cannot establish it. api#1857 — feat: serve PRM for the org-less /api/v1/mcp and revoke dotted grant tokensNo serious findings. The metadata route preserves the requested resource path, and dotted-token revocation derives its org from the token before hashing. Legacy revocation still accepts an explicit org. core#1416 — feat: embed the org in new OAuth grant tokensNo serious findings. Token grammar matches auth and API, org casing is preserved, and hashing still covers the full token using the org as the HMAC key. The stored attributes and lookup index remain unchanged, so this change requires no token backfill. sg-clickhouse-mcp#77 — ci: ship skill Terraform examples to claude-plugins as MarkdownNo serious findings. Ran only the copy/wrap steps against temporary copies: all 16 examples were converted, their fenced Terraform contents matched the originals byte for byte, and no claude-plugins#3 — feat: connect to the fixed StackGuardian MCP URL per regionDraft; no serious findings. Both regional URLs match the backend contract, the obsolete org setting is removed, and strict plugin and marketplace validation pass. Cross-PR / rollout
TestsIndependently run:
Live gateway, Lambda Web Adapter header handling and end-to-end OAuth sign-in were not tested. All six temporary review worktrees were removed. Automated review generated from the StackGuardian PR-review automation. Comments only; it does not approve or block. Reply here if a finding is wrong. |
vaibhav-202
left a comment
There was a problem hiding this comment.
Reviewed the diff at a4bbed4 (I did not install the plugin; the backend isn't live yet). No issues found.
What I checked:
.mcp.json: both servers point at the fixed/api/v1/mcpURLs, which match the route served by sg-clickhouse-mcp#78 and the protected-resource metadata path in api#1857.- No
user_configreference remains anywhere in the repo, including the synced skills, so removing the requiredorgsetting leaves nothing unresolved. - The skills never take the org from the server URL. Where they need it (
sg-create-connector, the Terraform skills), they read it from the dashboard URL or from the/orgs/<org>/...ids the tools return, so they still work without the setting. - README: the claude.ai custom connector line is now correct for both regions. The org-switch and upgrade sign-in notes match how the per-region URL behaves.
Agree with keeping this a draft until the merge-last checklist in the description holds in both prod regions.
The plugin directory refused version 1.0.1 because its MCP URLs contain
${user_config.org}. This pointsstackguardian-euandstackguardian-usat fixed URLs:https://api.app.stackguardian.io/api/v1/mcphttps://api.us.stackguardian.io/api/v1/mcpIt also removes the
orgsetting, since the organization is now chosen on the consent page, and bumps the plugin to 1.1.0. The READMEs say how to switch orgs and that upgrading asks for one more sign-in.Merge only after these hold in both prod regions:
/api/v1/mcpis live in the gateway;Before that, installs would hit a missing route or loop on sign-in.
Test plan
claude plugin validate --strict plugins/stackguardianandclaude plugin validate --strict .pass.user_configreferences remain./mcp, sign in to each region, pick an org, and run a tool.plugins/stackguardianin the plugin directory.🤖 Generated with Claude Code