← ~/pillars / tooling-foundation / mcp-baseline-java-aws
An MCP baseline for Java on AWS
The three MCP servers worth committing on day one (GitHub, AWS Knowledge, context7), plus the transport, auth, and scope decisions that make the config team-shareable.
updated 2026-06-10 ~4 min read pattern 02/03 Agent Tooling
on this page
Context. A Java/AWS team wants Claude Code connected to the systems that matter (the repo host, current AWS documentation, and current library docs) without each developer hand-assembling their own server list.
Forces. The MCP ecosystem is enormous (community registries list tens of thousands of servers) and mostly unaudited; the official registry is intentionally minimal and Anthropic’s Directory is the only curated source. Transports are in transition: Streamable HTTP is recommended, SSE is deprecated, and the entire awslabs catalogue is stdio-only: SSE support was removed in May 2025 with HTTP still in progress (awslabs/mcp). Meanwhile every server added is auth to manage and context to spend.
Resolution. Commit a three-server .mcp.json at project scope, auto-approve
it for the team, and let Tool Search keep the idle token cost near zero. Add
more servers only through the rubric in
choosing your toolchain.
Transport state, mid-2026
From the MCP reference:
| Transport | Status | Notes |
|---|---|---|
Streamable HTTP (type: http) | Recommended | OAuth 2.0, auto-reconnect with exponential backoff |
| stdio | Current for local | Direct system access; no auto-reconnect; all awslabs servers |
| SSE | Deprecated | Migrate to HTTP |
WebSocket (type: ws) | Available | Header-only auth; no OAuth via claude mcp add |
Practical consequence for this baseline: GitHub runs remote over HTTP; AWS
Knowledge and context7 run locally over stdio via npx, which makes Node.js a
workstation prerequisite. Put it in the dev container.
The baseline servers
GitHub (HTTP, remote). Official GitHub-maintained server at
https://api.githubcopilot.com/mcp/. Auth is a fine-grained PAT as a bearer
header, or OAuth. This is the workhorse for PR review loops, issue-to-code
workflows, and branch operations
(MCP reference). One caution from the
rubric: issue and PR bodies are text other people wrote, a real, if modest,
injection surface. Scope the PAT to the repos the team works in.
AWS Knowledge (stdio, awslabs). Up-to-date AWS docs, API references, What’s New posts, and Well-Architected guidance, exposed as a search tool and a fetch tool (awslabs catalogue). Read-only, documentation text only, minimal injection risk. And it is the difference between Claude answering from training data and answering from this week’s SDK release. For a Java team this is the cheapest accuracy upgrade available.
context7 (stdio, Upstash). Version-specific documentation and code
examples fetched directly from library sources (Spring Boot, AWS SDK for Java
v2, and most of the ecosystem) via two tools, resolve-library-id and
query-docs (upstash/context7). Works
without an API key at a limited rate; a key raises limits, which matters once
several developers run parallel sessions.
Worth evaluating beyond the baseline: the AWS IaC server (CloudFormation docs, CDK best practices and construct examples; high value if you write CDK in Java), and the Aurora PostgreSQL server over the RDS Data API with a read-only role (awslabs catalogue). The aws-dev-toolkit plugin bundles awsiac, awsknowledge, and awspricing with 34 skills, the fast path if you accept sample-grade provenance.
Scopes and team approval
Three scopes exist: local (default, private to you), project (.mcp.json in
the repo root, shared via git), and user (global, private)
(MCP reference). The baseline belongs
at project scope. Claude Code prompts each developer to approve
project-scoped servers; setting enableAllProjectMcpServers: true in the
committed .claude/settings.json removes that friction for servers the team
has already reviewed, which is exactly the deal: review at PR time, not at
prompt time.
Auth without secrets in git
The committed file must not contain tokens. The GitHub entry references
${GITHUB_MCP_TOKEN} and Claude Code expands the environment variable at
connect time. For OAuth-capable HTTP servers, Claude Code runs the browser
flow via /mcp and stores tokens in the macOS keychain with automatic
refresh. For exotic cases (Kerberos, short-lived internal SSO tokens),
headersHelper runs a script at connect time to produce headers dynamically.
The awslabs stdio servers need none of this: they use the AWS SDK credential
chain, so your existing IAM/SSO setup is the auth
(MCP reference).
Token cost: mostly a non-issue now
Tool Search is enabled by default (except on Vertex AI): only server names and
instructions load at startup, and Claude fetches tool schemas on demand. Adding
these three servers has minimal context impact, and alwaysLoad: true should
be reserved for a small set of tools genuinely used every turn
(MCP reference). The old advice to
ration MCP servers for context reasons is obsolete; ration them for security
and maintenance reasons instead.
Worked example
The complete committed configuration (the .mcp.json, the settings line that
auto-approves it, and the per-developer environment variable) is the
MCP baseline artifact. Onboarding
a new developer reduces to: clone the repo, export GITHUB_MCP_TOKEN (a
fine-grained PAT), ensure Node.js is present, start Claude Code. The stdio
servers launch automatically, the GitHub server connects over HTTP, and /mcp
shows all three healthy. No per-developer claude mcp add commands, and the
server list changes only by PR.