Repository navigation
feat(mcp): example + blog for MCP-for-AI-coding-assistants, plus fixes from review - #2425
Conversation
Ran `go get -u ./...` + `go mod tidy`. Two transitive pins from
existing go.mod comments were intentionally restored after the auto-
upgrade tried to violate them:
* `github.com/invopop/jsonschema` held at v0.13.0 — anthropic-sdk-go
uses `wk8/go-ordered-map/v2` for `jsonschema.Schema.Properties`;
v0.14.0 switched the upstream to `pb33f/ordered-map/v2`, breaking
type compatibility (build error: `cannot use orderedmap.New[...]
(wk8) as ...(pb33f) value`). Bump after anthropic-sdk-go migrates.
* `gocloud.dev` held at v0.41.0 — gomplate/v3's s3blob code references
`s3blob.URLOpener.ConfigProvider`, removed in gocloud.dev v0.42+
(build error: `unknown field ConfigProvider`). Bump when gomplate/v3
updates or when we migrate gomplate/v3 usages to gomplate/v4.
Notable updates:
* anthropic-sdk-go v1.41.0 → v1.43.0
* terraform-docs v0.23.0 → v0.24.0
* aws-sdk-go-v2/service/s3 v1.100.1 → v1.101.0
* aws-sdk-go-v2/service/securityhub v1.69.2 → v1.70.0
* azblob v1.6.4 → v1.7.0
* k8s.io/client-go v0.36.0 → v0.36.1
* golang.org/x/{term,text,sys,net,tools,mod,exp,crypto} bumps
* google.golang.org/{api,genai,grpc} bumps
* modernc.org/sqlite v1.50.0 → v1.50.1
* open-policy-agent/opa v1.16.1 → v1.16.2
`go build ./...` passes after the rollback of the two pinned deps.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
See docs/fixes/2026-05-15-mcp-review-fixes.md for the full punch list, root causes, and per-issue test coverage. Headline changes: * **P1 — `atmos mcp export` now injects toolchain PATH.** Delete the cmd-local mcpJSONConfig/mcpJSONServer/buildMCPJSONEntry duplicates in cmd/mcp/client/export.go and delegate to mcpclient.GenerateMCPConfig with toolchainPATH from a new buildToolchainPATH helper. IDE-spawned subprocesses can now find toolchain-managed `uvx` / `npx`. * **P1 — MCP server registers the full Atmos AI tool set.** Replace the hand-rolled 7-tool list in cmd/mcp/server/start.go::initializeAIComponents with a call to the canonical atmosTools.RegisterTools factory (the same one cmd/ai uses). Adds describe_affected (docs already advertised it), search_files, execute_atmos_command, and the rest of the AI tool surface to the MCP server. * **P2 — `atmos mcp restart` help text disambiguates the validation semantics.** Update Short and the embedded long-form markdown to spell out that the command validates a stop+start cycle without leaving the server running. * **P2 — Concurrent-safe temp file in WriteMCPConfigToTempFile.** Switch to os.CreateTemp with the pattern `atmos-mcp-config-*.json`. Each invocation gets a unique path; concurrent writers no longer race. Suppress gosec G703 false positives — tmpPath comes from os.CreateTemp, no untrusted-input chain. * **P3 — Defensive copy in Session.Tools().** Returns a slice copy. * **P3 — Hardened firstSentence helper.** Recognizes `! ` and `? `, applies a 80-rune hard ceiling with ellipsis. * **P3 — `atmos mcp tools` uses the renderer pipeline.** Exposes --format / --columns / --sort / --delimiter (same as `mcp list`). * **P4 — Drop unused ScopedAuthProvider.baseConfig.** Cleanup. * **P4 — `atmos mcp test` no longer double-prints errors.** Returns nil from RunE so main.go's errUtils.Format pipeline is skipped. Also incidentally regenerates pkg/telemetry/mock/mock_posthog_client.go to add the EvaluateFlags method the posthog-go SDK added in a recent release — golangci-lint was blocking on this unrelated pre-existing issue. Side effect, not a feature change. Test coverage: * cmd/mcp/client/export_test.go: TestExport_DelegatesToPackageGenerator and TestBuildToolchainPATH_NoToolchainReturnsEmpty. * cmd/mcp/server/start_test.go: TestInitializeAIComponents_RegistersDescribeAffected and TestInitializeAIComponents_RegistersSharedFactoryTools. * cmd/mcp/client/restart_test.go: TestRestartCmd_HelpMentionsValidationSemantics. * pkg/mcp/client/mcpconfig_test.go: TestWriteMCPConfigToTempFile_ConcurrentWritesGetDistinctPaths drives 16 parallel writers and asserts pairwise-distinct paths plus no content cross-talk. * pkg/mcp/client/session_test.go: TestSession_ToolsReturnsDefensiveCopy. * cmd/mcp/client/helpers_test.go: TestFirstSentence extended. * cmd/mcp/client/tools_test.go: TestRenderMCPTools_FormatJSON et al. * cmd/mcp/client/test_cmd_test.go: TestExecuteMCPTest_ReturnsNilEvenOnFailure. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
New example showing how to configure MCP servers (the Atmos MCP server itself plus the awslabs/mcp AWS suite) ONCE in atmos.yaml, then use the same toolset from Claude Code, OpenAI Codex CLI, and Google Gemini CLI. Atmos Auth injects AWS credentials per-server; the Atmos toolchain pins `uvx` so every AI assistant uses the same binary version. Example files (examples/mcp-for-ai-coding-assistants/): * atmos.yaml — toolchain alias (uv → astral-sh/uv), mcp.enabled: true, nine MCP servers (atmos + aws-docs, aws-knowledge, aws-pricing, aws-billing, aws-iam, aws-cloudtrail, aws-security, aws-api), Atmos Auth (aws-sso + readonly identity), and an optional AI block. * .tool-versions — pins uv to a known version so the toolchain PATH injection in the exported .mcp.json gives every AI CLI the same uvx. * README.md — full workflow plus three CLI-specific subsections (Claude Code via `claude mcp add` / .mcp.json, Codex CLI via ~/.codex/config.toml, Gemini CLI via .gemini/settings.json or `gemini mcp add`). Includes a "What the atmos MCP server does" section listing all ~20 tools the embedded server exposes, with the "AWS servers = what's deployed / Atmos server = what's defined" framing. * stacks/example.yaml + components/terraform/vpc/ — mock fixtures so the Atmos MCP tools have something concrete to report when the AI asks about this project. Blog post (website/blog/2026-05-16-mcp-for-ai-coding-assistants.mdx): * Tags: feature, dx. * Walks through the problem (three config files, three auth setups, three toolchain stories) and the solution (one atmos.yaml, exported per CLI). Includes condensed CLI-specific wiring sections and a short overview of what the embedded `atmos` MCP server contributes on top of the AWS servers. Also adds an entry to .gitignore so the example's checked-in .tool-versions isn't ignored by the global `.tool-versions` pattern (mirrors the existing carve-out for examples/toolchain/.tool-versions). Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
The Atmos Pro MCP server (https://atmos-pro.com/mcp) complements the local Atmos + AWS servers with operational history: drift detection, deployment runs, workflow runs, audit logs, repair recommendations. Unlike the stdio servers in atmos.yaml, atmos-pro is HTTP-transport (`https://atmos-pro.com/mcp`) with a browser-based GitHub OAuth flow — no API keys, tokens stored in the OS keychain. Because the current MCPServerConfig schema in pkg/schema/mcp.go only models stdio servers (command/args/env), atmos-pro can't be added to mcp.servers in atmos.yaml today; it's registered with each AI CLI directly via `claude mcp add --transport http`, `gemini mcp add --transport http`, or a TOML/JSON entry in the CLI's config. Both the README and blog post document this asymmetry up front so users aren't confused when `atmos mcp export` produces a config without atmos-pro. README updates (examples/mcp-for-ai-coding-assistants/README.md): * Servers table grew a "Transport" column and a new atmos-pro row. The AWS rows now group under "AWS (via Atmos Auth)" rather than just "Yes/No" for clearer auth semantics. * New "What the `atmos-pro` MCP Server Does" section pulls capability bullets directly from the Atmos Pro changelog (https://atmos-pro.com/changelog/2026-05-09-mcp-server) — triage, workflows/deployments, historical context, security/access. * Updated mental model from two layers to three: AWS = what's deployed atmos = what's defined atmos-pro = what's happening over time With a concrete cross-layer example prompt that pulls from all three. * New "Atmos Pro server (HTTP transport)" install subsection right after the per-CLI sections, with `claude mcp add --transport http`, the TOML entry for Codex's `~/.codex/config.toml`, the `gemini mcp add` command, and the raw JSON/TOML config blocks for manual merging. * Example questions expanded with atmos-pro-specific prompts ("Which workspaces have drift right now?", "Has this stack been flapping?") and a cross-layer prompt. * Prereqs gained an optional Atmos Pro account/workspace step. * Learn More links to the Atmos Pro site, install docs, and changelog. Blog post updates (website/blog/2026-05-16-mcp-for-ai-coding-assistants.mdx): * Opening hook now mentions atmos-pro alongside atmos and the awslabs suite, including the "browser OAuth, no API keys" angle. * Servers table gained Transport/Auth columns and the atmos-pro row; "ten MCP servers" replaces "nine". * New "The Atmos Pro MCP server" section (sibling to the "What the atmos MCP server does" section) covering the four capability buckets and the HTTP transport / OAuth flow. * Mental model updated to the three-layer framing. * New "Atmos Pro (all three CLIs)" install subsection in the wiring-up section. * "What You Can Ask" gained atmos-pro questions and a cross-layer example prompt. * Related Reading links to atmos-pro.com, the install page, and the capability-overview changelog. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
A short, punchy call-to-action right after the intro of both files, to steer the reader's attention to the three things this setup unlocks: Your AI knows your stacks. And your cloud. And your history. In one prompt, your AI coding assistant answers: - What's configured in your infrastructure - What's deployed in your cloud accounts - What changed — when, why, how, and by whom Centralized auth. Centralized permissions. One atmos.yaml. Placed at the top of the README (right after the intro) and at the top of the blog post (right after the lede / <!--truncate--> marker) so it hooks readers before they decide to bounce. The README version links to the in-page #one-time-setup section; the blog version links out to the example directory on GitHub. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Both the README and blog post now have a sharper "pick the example that matches your workflow" section covering all three sibling examples, plus a 2×2 mental map (Atmos-driven vs CLI-driven × API-key vs subscription AI providers) so readers can self-select quickly. * examples/mcp/ — same MCP server config, but Atmos drives the loop via `atmos ai ask`. The "stay inside atmos CLI" sibling. * examples/ai-claude-code/ — Claude Pro/Max subscription as Atmos's AI provider (no API key); Atmos hosts the conversation. * examples/ai/ — multi-provider Atmos AI (Anthropic API, OpenAI API, Ollama). API-key flow, no external CLI. The blog post version uses GitHub URLs since blog readers haven't cloned the repo yet; the README version uses relative paths within the repo. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
The blog post previously linked sibling examples via raw github.com/cloudposse/atmos/tree/main/examples/<name> URLs, and the README used relative paths (../mcp/, ../ai/, ../ai-claude-code/). Both now point to the canonical docs URLs at https://atmos.tools/examples/<name> so readers land on the rendered docs page (with cross-links, search, TOC) rather than the raw GitHub source tree or a file-system path that only works inside the repo. Also adds a one-liner pointing at the full examples index (https://atmos.tools/examples) so readers can discover other examples beyond the four mentioned here. Link labels updated from bare directory paths to human-readable titles matching the docs page names ("Atmos MCP integrations", "Atmos AI with Claude Code", "Atmos AI (multi-provider)") — better for scanning and accessibility. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Per docs/fixes/2026-05-15-mcp-review-fixes.md, three production paths
still had thin coverage after the punch-list shipped — most notably
the refactored `executeMCPExport` and the previously-unreachable
`Server.Run`. This commit adds 6 tests that drive those paths
end-to-end without spawning external processes.
Coverage delta:
cmd/mcp/client 49.3% → 54.6%
pkg/mcp 86.8% → 91.2%
Per-function gains (the ones tied to the fix-doc work):
cmd/mcp/client/export.go::executeMCPExport 0% → 84.2%
pkg/mcp/server.go::Server.Run 0% → 100%
pkg/mcp/client/mcpconfig.go::WriteMCPConfigToTempFile 52% → 57%
Tests added:
* cmd/mcp/client/export_test.go (+4 tests, +167 LOC)
- TestExecuteMCPExport_NoServersEarlyReturn pins the "no servers
configured" branch (info notice, return nil, no file written).
- TestExecuteMCPExport_HappyPath is the end-to-end regression for
fix-doc issue #1: writes a minimal atmos.yaml with one server,
calls executeMCPExport, asserts the file is created with valid
MCPJSONConfig JSON, the server entry survives the round trip,
and the file mode is 0600.
- TestExecuteMCPExport_OverwritesExistingFile guards the explicit
os.Chmod after WriteFile — WriteFile preserves OLD permission
bits when overwriting, so this test pre-creates a 0644 file and
asserts the function tightens it to 0600.
- TestExecuteMCPExport_WriteFailure_NonExistentDir hits the
os.WriteFile error path by pointing --output at a missing
directory; verifies the offending path is in the error message.
Shared helpers (newExportTestCmd, writeMinimalAtmosYAMLForExport)
factored so the four tests share fixture setup.
* pkg/mcp/client/mcpconfig_test.go (+2 tests, +69 LOC)
- TestWriteMCPConfigToTempFile_CreateTempFailure exercises the
os.CreateTemp failure branch by pointing TMPDIR at a missing
directory; asserts the error wraps errUtils.ErrMCPConfigWriteFailed
so callers can errors.Is-match the sentinel.
- TestWriteMCPConfigToTempFile_TempDirHonored confirms the
cooperative contract with os.TempDir — TMPDIR override is
respected. Robust to macOS /tmp → /private/tmp symlink quirk via
filepath.EvalSymlinks on both sides.
Both tests skip on Windows because TMPDIR override semantics differ.
* pkg/mcp/server_test.go (+1 test, +49 LOC)
- TestServer_Run_TerminatesOnContextCancel uses the MCP SDK's
NewInMemoryTransports() so the test can drive Server.Run without
stdio or HTTP. Asserts Run returns when its context is cancelled
— the only meaningful contract for a long-running server method.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
Tip Atmos Pro
No affected stacks workflow was detected for this pull request. |
CI failed on TestPrintTestResult_SurfacesUnderlyingError because the
UI formatter wraps styled text in TrueColor ANSI escape sequences,
which can split a single logical message across multiple escape
blocks:
"...Error: connection refused on\x1b[0m\x1b[97m /tmp/mcp.sock\x1b[0m"
The naive substring search for "connection refused on /tmp/mcp.sock"
misses because of the `\x1b[0m\x1b[97m` in the middle. Locally
(without forced color) the formatter emits a contiguous string and
the test passes; on CI (Linux + Windows runners, TrueColor on) the
split breaks it.
Fix: add a stripANSI helper that drops CSI sequences via the
`\x1b\[[0-9;]*m` regex, and run captured stderr through it before
asserting. Verified the fix locally with
ATMOS_FORCE_COLOR=true ATMOS_FORCE_TTY=true.
5274b1e
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@website/blog/2026-05-16-mcp-for-ai-coding-assistants.mdx`:
- Line 32: Change the heading "Your AI knows your stacks and components. And
your cloud. And your history." from h3 to h2 to avoid skipping levels (match
incremental heading hierarchy under the frontmatter title); locate the line
containing that exact text in the file and update the leading Markdown marker
from "###" to "##".
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 3661b3aa-1007-4501-8eab-0ba3310e71b9
📒 Files selected for processing (2)
examples/mcp-for-ai-coding-assistants/README.mdwebsite/blog/2026-05-16-mcp-for-ai-coding-assistants.mdx
There was a problem hiding this comment.
Actionable comments posted: 2
🧹 Nitpick comments (1)
examples/mcp-for-ai-coding-assistants/atmos.yaml (1)
52-53: ⚡ Quick winPin MCP package versions instead of
@latestfor deterministic example behavior.Using
@latesthere can make the example drift over time and break reproducibility across teammates/CI.Suggested change
- args: ["awslabs.aws-documentation-mcp-server@latest"] + args: ["awslabs.aws-documentation-mcp-server@<pinned-version>"] - args: ["awslabs.aws-pricing-mcp-server@latest"] + args: ["awslabs.aws-pricing-mcp-server@<pinned-version>"] - args: ["awslabs.billing-cost-management-mcp-server@latest"] + args: ["awslabs.billing-cost-management-mcp-server@<pinned-version>"] - args: ["awslabs.iam-mcp-server@latest"] + args: ["awslabs.iam-mcp-server@<pinned-version>"] - args: ["awslabs.cloudtrail-mcp-server@latest"] + args: ["awslabs.cloudtrail-mcp-server@<pinned-version>"] - args: ["awslabs.well-architected-security-mcp-server@latest"] + args: ["awslabs.well-architected-security-mcp-server@<pinned-version>"] - args: ["awslabs.aws-api-mcp-server@latest"] + args: ["awslabs.aws-api-mcp-server@<pinned-version>"]Also applies to: 71-72, 82-83, 92-93, 102-103, 113-114, 123-124
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@examples/mcp-for-ai-coding-assistants/atmos.yaml` around lines 52 - 53, Replace all uses of the MCP package pinned to `@latest` (e.g., the args value "awslabs.aws-documentation-mcp-server@latest" and the other similar args occurrences) with an explicit versioned tag (for example "[email protected]" or a variable referencing a locked version) so the example is deterministic; update each args entry at the noted occurrences (the five other instances) to use the same pinned versioning scheme and document or centralize the version string if multiple entries should stay in sync.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@examples/mcp-for-ai-coding-assistants/README.md`:
- Around line 28-33: The README overstates what's defined/exported from
atmos.yaml and incorrectly implies all external MCP servers are wrapped with
atmos auth exec; update the text to clarify that atmos.yaml lists configured MCP
servers but not necessarily every example server (remove or qualify the “every
MCP server is defined in atmos.yaml” claim and the example reference to
atmos-pro if it isn’t present in the repo’s atmos.yaml), and adjust the sentence
about credentials to state that atmos auth exec is used for servers requiring
resolved credentials while no-identity servers (e.g., aws-docs, aws-knowledge)
are not wrapped with atmos auth exec; make the same clarifying edits in the
other affected block (around lines referenced 44-52).
In `@website/blog/2026-05-16-mcp-for-ai-coding-assistants.mdx`:
- Line 117: The link target fragment in the link "[walks you through
that](/examples/mcp-for-ai-coding-assistants#option-2--openai-codex-cli)" is
incorrect and should be updated to match the actual heading slug in the examples
README; open the /examples/mcp-for-ai-coding-assistants README, copy the exact
heading slug for the "OpenAI Codex" or "Option 2" section, and replace
"`#option-2--openai-codex-cli`" with the correct fragment (e.g.,
"`#option-2-openai-codex-cli`" or whatever the heading generates) so the anchor
navigates directly to the Codex section.
---
Nitpick comments:
In `@examples/mcp-for-ai-coding-assistants/atmos.yaml`:
- Around line 52-53: Replace all uses of the MCP package pinned to `@latest`
(e.g., the args value "awslabs.aws-documentation-mcp-server@latest" and the
other similar args occurrences) with an explicit versioned tag (for example
"[email protected]" or a variable referencing a locked
version) so the example is deterministic; update each args entry at the noted
occurrences (the five other instances) to use the same pinned versioning scheme
and document or centralize the version string if multiple entries should stay in
sync.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 8e40d4d9-09c9-4da8-b54e-439822a5f5e1
📒 Files selected for processing (3)
examples/mcp-for-ai-coding-assistants/README.mdexamples/mcp-for-ai-coding-assistants/atmos.yamlwebsite/blog/2026-05-16-mcp-for-ai-coding-assistants.mdx
README — Comment from CodeRabbit (valid): - "every MCP server is defined in atmos.yaml" was wrong because the table includes atmos-pro, which is an HTTP-transport server and not representable in atmos.yaml's stdio-only MCPServerConfig today. Now reads "every stdio MCP server" and explains the asymmetry inline. - "Each external MCP server is spawned by `atmos auth exec`" was wrong for aws-docs and aws-knowledge, which have no `identity` (public endpoints). Now reads "Each server with an `identity`" and names the two exceptions explicitly. - atmos-pro row Auth column updated to make the "registered separately, HTTP" detail visible at table-glance rather than only in prose. Realigned table separator/widths to fit the longer Auth value. Blog — Comment from CodeRabbit (valid): - Anchor `#option-2--openai-codex-cli` doesn't match any heading in the example README (the heading is `### OpenAI Codex CLI` → slug `openai-codex-cli`). Updated the link target to match. Skipped (CodeRabbit suggestion not adopted): - Pinning `awslabs.<name>@latest` to specific versions. The @latest convention is consistent across all other Atmos MCP examples, all MCP docs (configuration/mcp/index.mdx, commands/mcp/{export,list}.mdx), the PRD, test fixtures, and the prior MCP blog post — and matches upstream awslabs' own canonical install instructions. Diverging here would create inconsistency, and the suggested `<pinned-version>` placeholder is itself non-functional.
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@website/blog/2026-05-16-mcp-for-ai-coding-assistants.mdx`:
- Around line 1-455: Run a local site build (cd website && npm run build) to
catch broken links or MDX rendering issues for this post (file:
2026-05-16-mcp-for-ai-coding-assistants.mdx; frontmatter: slug, title, authors:
aknysh, tags). If the build reports broken links or missing references, update
the markdown links (e.g. /ai/mcp-server, /examples/mcp-for-ai-coding-assistants,
related docs) or add the missing target pages, fix any MDX syntax/render errors,
then rebuild until the site build completes without errors and the post renders
correctly.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: df0bcb05-53a3-40df-9be6-de5558596781
📒 Files selected for processing (2)
examples/mcp-for-ai-coding-assistants/README.mdwebsite/blog/2026-05-16-mcp-for-ai-coding-assistants.mdx
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@examples/mcp-for-ai-coding-assistants/README.md`:
- Around line 85-87: The README shows the Claude export command split across two
lines ("atmos mcp export" and then "claude"), which will be interpreted as two
separate shell commands; fix it by joining them into a single command line (use
"atmos mcp export claude" as one line in the code block) so copying the command
executes correctly and does not break into two commands.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: a3316cee-36bf-4807-b8f1-24b149860f8f
📒 Files selected for processing (1)
examples/mcp-for-ai-coding-assistants/README.md
|
These changes were released in v1.219.0. |
what
New example and blog post — "MCP for AI Coding Assistants"
examples/mcp-for-ai-coding-assistants/showing how to use Atmos as the configuration / auth / toolchain layer for MCP servers consumed by Claude Code, OpenAI Codex CLI, and Google Gemini CLI.atmos.yamldefines 9 MCP servers — the embeddedatmosMCP server + the full AWS suite (aws-docs,aws-knowledge,aws-pricing,aws-billing,aws-iam,aws-cloudtrail,aws-security,aws-api) — plus the HTTP-transport Atmos Pro MCP server registered alongside.website/blog/2026-05-16-mcp-for-ai-coding-assistants.mdxwalking through the problem (three config formats, three auth flows, three toolchain stories), the solution (oneatmos.yaml), and per-CLI wiring instructions for all three CLIs.MCP implementation review — punch list fixes
Detailed in
docs/fixes/2026-05-15-mcp-review-fixes.md. Nine issues found while reviewing `pkg/mcp/` and `cmd/mcp/`:Also incidentally regenerated `pkg/telemetry/mock/mock_posthog_client.go` because `posthog-go` added `EvaluateFlags` and `golangci-lint` was blocking on it — unrelated to MCP, but had to be addressed to land the rest.
Test coverage
Per-issue regression tests landed alongside each fix. After the review-fix sweep we also added a focused coverage push for the lowest-coverage MCP paths:
Highlights:
why
Example + blog
Anyone using Claude Code, OpenAI Codex CLI, or Google Gemini CLI with the awslabs/mcp suite hits the same friction: three config formats (`.mcp.json` vs `config.toml` vs `settings.json`), three credential stories (`aws configure`, `AWS_PROFILE` juggling, role-ARN copy-paste), and three toolchain stories (where `uvx` lives, which Python it picks up). Each is solvable individually; doing all three for three CLIs is annoying.
Atmos already has the primitives — `atmos.yaml` for centralized config, Atmos Auth for SSO/role assumption with per-server identity routing, the Atmos toolchain for binary pinning, and the embedded `atmos` MCP server for project introspection. `atmos mcp export` ties them together into a single `.mcp.json` every CLI can consume.
The example makes that workflow concrete; the blog post tells the story to drive adoption.
Fixes + tests
The MCP implementation shipped 6 phases of work (per the PRD at `docs/prd/atmos-mcp-integrations.md`) and the architecture is sound, but a review surfaced 9 quality / correctness issues — most notably the `atmos mcp export` path silently dropping toolchain PATH (P1) and the MCP server registering a curated subset of AI tools that drifted from the docs (P1). These are the kinds of issues that quietly degrade the user experience without triggering loud failures, so fixing them with regression tests prevents future drift.
The coverage boost specifically targets the paths the fix doc touched, so the regression tests aren't just present but exercised by the coverage gate.
references
examples/mcp-for-ai-coding-assistants/website/blog/2026-05-16-mcp-for-ai-coding-assistants.mdxdocs/fixes/2026-05-15-mcp-review-fixes.mddocs/prd/atmos-mcp-integrations.mdSummary by CodeRabbit
New Features
Bug Fixes / Improvements
Tests
Documentation