MCP-CONFIG · tooling-foundation
MCP baseline for a Java/AWS team
A committed .mcp.json wiring GitHub over Streamable HTTP plus AWS Knowledge and context7 over stdio, with token-free auth via env expansion and the AWS credential chain.
✓ verified 2026-06-10 · stack: claude-code, java, aws, github · source
The project-scoped MCP configuration from the baseline pattern: commit it to the repo root and every developer gets the same three servers on clone.
{ "mcpServers": { "github": { "type": "http", "url": "https://api.githubcopilot.com/mcp/", "headers": { "Authorization": "Bearer ${GITHUB_MCP_TOKEN}" } }, "aws-knowledge": { "type": "stdio", "command": "npx", "args": ["-y", "@aws/aws-knowledge-mcp-server"] }, "context7": { "type": "stdio", "command": "npx", "args": ["-y", "@upstash/context7-mcp"] } }}Pair it with one line in the committed .claude/settings.json so the team is
not individually prompted to approve servers already reviewed in a PR:
{ "enableAllProjectMcpServers": true}Each developer exports a fine-grained GitHub PAT before starting Claude Code:
export GITHUB_MCP_TOKEN="github_pat_..."What it does
- github: GitHub’s official remote server over Streamable HTTP (the
recommended transport): PR review, issues, branches, code search. Auth is a
bearer header;
${GITHUB_MCP_TOKEN}is expanded from the environment at connect time, so no secret lands in git. HTTP transport auto-reconnects with exponential backoff. - aws-knowledge: the awslabs server for current AWS docs, API references, What’s New posts, and Well-Architected guidance. Read-only; stdio because awslabs servers do not yet support Streamable HTTP (SSE was removed May 2025). AWS auth, where needed, rides the SDK credential chain: no new secret.
- context7: version-specific library documentation (Spring Boot, AWS SDK
for Java v2, and most of the ecosystem) via
resolve-library-idandquery-docs. Works keyless at a limited rate. - Tool Search is on by default, so these servers’ tool schemas are deferred
until first use: the idle context cost of this file is minimal, and no
server here needs
alwaysLoad.
Failure modes
GITHUB_MCP_TOKENunset. The GitHub server fails auth at connect; the other two are unaffected. Check/mcpfor connection state, and put the export in your shell profile or direnv. Scope the PAT to the team’s repos: it defines everything the server can touch.- No Node.js, no stdio servers. Both
npx-launched servers silently depend on a Node runtime on each workstation. Bake Node into the dev container or bootstrap script; this is the cost of the awslabs stdio-only transport gap. npx -yfloats to latest. Convenient, but each launch can pull a new version, a supply-chain consideration. Pin versions inargs(for example@upstash/context7-mcp@<version>) if your security posture requires reproducible tooling.- stdio does not auto-reconnect. If a local server process dies, use
/mcp reconnect. HTTP and SSE servers reconnect automatically with exponential backoff; stdio servers do not. - context7 rate limits under team load. Keyless access throttles; with several parallel sessions, configure an API key rather than removing the server.
- GitHub content is an injection surface. Issue and PR bodies are text other people wrote and arrive in Claude’s context. Keep the deny rules and hooks from the deterministic policy pillar in place in the same sessions.
Verified against the .mcp.json shape, env-expansion, transport, and scope
documentation at code.claude.com/docs/en/mcp and the awslabs server catalogue
at awslabs.github.io/mcp, 2026-06-10.