Skip to content

[v0.8.1-dev.2] Augment MCP host support & CLI logging improvements#48

Merged
LittleCoinCoin merged 7 commits intoCrackingShells:devfrom
LittleCoinCoin:dev
Mar 4, 2026
Merged

[v0.8.1-dev.2] Augment MCP host support & CLI logging improvements#48
LittleCoinCoin merged 7 commits intoCrackingShells:devfrom
LittleCoinCoin:dev

Conversation

@LittleCoinCoin
Copy link
Member

Features

Augment Code MCP host support

Adds full MCP host support for Augment Code, covering the complete adapter contract:

  • MCPHostType.AUGMENT enum value and AUGMENT_FIELDS constant (mirrors Claude field set: command, args, env, url, headers, type)
  • AugmentAdapter — validates exactly-one transport (command XOR url) and type-field consistency; no structural transforms needed
  • AugmentHostStrategy — extends ClaudeHostStrategy targeting ~/.augment/settings.json with the mcpServers key; same JSON format and settings-preservation logic as the Claude family; None on native Windows (WSL uses the Linux path)
  • Wired into all four integration points: adapter __init__, AdapterRegistry, BackupInfo, and reporting
  • Auto-generates 19+ new test cases from existing fixtures (roundtrip, cross-host sync pairs, transport mutual exclusion, field filtering)

--log-level global flag

All hatch commands previously emitted one or more INFO-level log lines (with full timestamps and logger names) before any meaningful output, regardless of whether anything was actually happening. Root cause: 8 modules called self.logger.setLevel(logging.INFO) on their own loggers, bypassing root-level filtering entirely.

Fixed by removing the per-module setLevel overrides and defaulting basicConfig to WARNING. Operational logs remain fully accessible via --log-level INFO.

New top-level flag accepted by all commands:

hatch --log-level {DEBUG,INFO,WARNING,ERROR} <command>

Default is WARNING — operational INFO messages are available on demand without cluttering normal output.

Transient registry cache status

When the registry cache is stale and a network fetch is required, a dim status line now appears on stderr and is overwritten as soon as the table renders — no persistent log noise, fully silent when output is piped or in CI:

  Refreshing registry cache...

Bug Fixes

MCP host adapter validation and test coverage gaps (fix(mcp-hosts))

Adversarial review of the Augment integration surface revealed three pre-existing gaps:

  • EnvironmentPackageEntry.validate_host_names() was missing "codex", silently rejecting any package configured for the Codex host
  • test_adapter_protocol.py ALL_ADAPTERS and HOST_ADAPTER_MAP still reflected the pre-Augment/OpenCode 8-host list, meaning the AP-01…AP-06 protocol tests never exercised the two newest adapters
  • AdapterRegistry docstring example showed stale 8-host output

LittleCoinCoin and others added 6 commits February 27, 2026 00:21
The skill's Step 5 only covered data-driven fixtures (canonical_configs.json
and host_registry.py), missing the static ALL_ADAPTERS and HOST_ADAPTER_MAP
lists in test_adapter_protocol.py. Without this section, new hosts pass all
tests while silently lacking AP-01…AP-06 protocol compliance coverage.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@LittleCoinCoin LittleCoinCoin reopened this Mar 4, 2026
@LittleCoinCoin LittleCoinCoin merged commit 0bc06fb into CrackingShells:dev Mar 4, 2026
2 of 3 checks passed
cracking-shells-semantic-release bot pushed a commit that referenced this pull request Mar 4, 2026
## <small>0.8.1-dev.2 (2026-03-04)</small>

* Merge branch 'feat/augment-mcp-host-support' into dev ([67bb767](67bb767))
* Merge branch `milestone/fix-logging-clutter` into dev ([5fd15dd](5fd15dd))
* Merge pull request #48 from LittleCoinCoin/dev ([0bc06fb](0bc06fb)), closes [#48](#48)
* docs(adding-mcp-hosts): add test_adapter_protocol.py to fixture guide ([3a58908](3a58908))
* docs(logging): expose --log-level flag in CLI reference global options ([5aa2e9d](5aa2e9d))
* feat(cli): add --log-level flag and default log output to WARNING ([1e3817f](1e3817f))
* feat(mcp-augment): add enum value and constant ([8b22594](8b22594))
* feat(mcp-augment): implement AugmentAdapter ([5af34d1](5af34d1))
* feat(mcp-augment): implement AugmentHostStrategy ([b13d9d0](b13d9d0))
* feat(mcp-augment): wire AugmentAdapter into integration points ([367b736](367b736))
* feat(registry): add transient dim status on cache refresh ([09dd517](09dd517))
* refactor(logging): remove forced setLevel(INFO) from all module loggers ([fb2ee4c](fb2ee4c))
* refactor(registry): demote startup and fetch INFO logs to DEBUG ([df97e58](df97e58))
* fix(mcp-hosts): close validation and test coverage gaps ([9d7f0e5](9d7f0e5))
* test(mcp-augment): register test fixtures and update tests ([294d0d8](294d0d8))
* chore: clean up temporary reports ([038be8c](038be8c))
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