Skip to content

chore(scripts): mcp-probe — drive oab-mcp directly, no desktop app - #11

Merged
brettchien merged 1 commit into
mainfrom
chore/mcp-probe
Aug 10, 2026
Merged

chore(scripts): mcp-probe — drive oab-mcp directly, no desktop app#11
brettchien merged 1 commit into
mainfrom
chore/mcp-probe

Conversation

@brettchien

Copy link
Copy Markdown
Contributor

Debug the oab-mcp core without the desktop app. scripts/mcp-probe.mjs spawns the core, runs the MCP handshake, calls a tool, and prints the raw JSON-RPC + the core's stderr — the same flow the Tauri bridge uses, so it hits the exact AWS credential/region resolution the app would.

Why

The deploy_list AccessDenied Brett hit was credential/region drift, not a missing IAM policy. Iterating on that through build→download→open-.app→read-log is slow. This probe turns it into a terminal loop: vary AWS_PROFILE/AWS_REGION and see the result instantly.

Verified live (ECS task role, cluster oab)

  • AWS_REGION=ap-east-2isError:false, returns mira + orca deployments.
  • AWS_REGION=ap-southeast-1isError:true, AccessDeniedException … ecs:ListServices — the drift symptom, reproduced in one shot.

Usage

AWS_PROFILE=brettchien AWS_REGION=ap-east-2 OAB_CLUSTER=oab \
  node scripts/mcp-probe.mjs "/Applications/OAB Studio.app/Contents/MacOS/oab-mcp"

No build needed on macOS — the .app already bundles a working oab-mcp.

Node-only, no deps. Independent of the desktop stack (#9/#10).

🤖 Generated with Claude Code

A tiny stdio driver for the oab-mcp core: initialize → tools/call, printing
raw JSON-RPC and forwarding the core's stderr. Lets you debug credential /
region / tool behavior in a fast terminal loop instead of build → download →
click the .app. Point it at the core bundled in the shipped .app and vary
AWS_PROFILE/AWS_REGION to reproduce credential drift in one shot.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@brettchien
brettchien merged commit bb59905 into main Aug 10, 2026
1 check passed
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