Skip to content

Add agent-context devcontainer feature - #50

Merged
FScholPer merged 4 commits into
mainfrom
fscholper/agent-context-feature
Oct 22, 2026
Merged

FScholPer merged 4 commits into
mainfrom
fscholper/agent-context-feature

Conversation

@FScholPer

Copy link
Copy Markdown
Contributor

The feature installs the pinned graphify-codegraph MCP server with uv and registers it on postCreate for Claude Code, Copilot CLI, opencode and Codex in the user config, keeping other settings. It is published to GHCR by the Release workflow; prepare_release and check_pins now cover its source pin and version.

The feature installs the pinned graphify-codegraph MCP server with uv and
registers it on postCreate for Claude Code, Copilot CLI, opencode and
Codex in the user config, keeping other settings. It is published to
GHCR by the Release workflow; prepare_release and check_pins now cover
its source pin and version.

Co-Authored-By: frank.scholter_peres <frank.scholter_peres@mercedes-benz.com>
@FScholPer
FScholPer requested review from odra and a balanced review from Copilot October 19, 2026 12:00

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Configuration permissions, Codex updates, error isolation, and interpreter provisioning need correction before approval.

4 open issues
What changed in this PR

Adds a devcontainer feature that installs the pinned graphify-codegraph MCP server and registers it with supported coding agents.

Changes:

  • Adds installation, registration, documentation, and tests.
  • Extends release preparation and pin checks to cover features.
  • Publishes features to GHCR during releases.
File Description
tests/​test_register_mcp.py Tests registration and configuration preservation.
scripts/​prepare_release.py Updates feature versions and source pins.
scripts/​check_pins.py Validates feature versions and pins.
features/​src/​agent-context/​register_mcp.py Registers the server in agent configurations.
features/​src/​agent-context/​README.md Documents feature setup and requirements.
features/​src/​agent-context/​install.sh Installs the pinned server and registration helper.
features/​src/​agent-context/​devcontainer-feature.json Defines feature metadata and lifecycle hook.
.github/​workflows/​release.yml Adds GHCR feature publishing.

Review effort: Balanced

Comment thread features/src/agent-context/register_mcp.py Outdated
Comment thread features/src/agent-context/register_mcp.py Outdated
Comment thread features/src/agent-context/devcontainer-feature.json
Comment thread features/src/agent-context/register_mcp.py Outdated
FScholPer and others added 3 commits October 22, 2026 13:23
- Preserve file permissions when updating configs (fixes security issue)
- Use regex-based TOML header check to support quoted keys
- Add Python3 interpreter check in install script
- Handle per-agent config errors gracefully without aborting all registrations

All 4 Copilot review comments addressed:
1. ✅ Preserve private config permissions
2. ✅ TOML-aware upsert for MCP server configuration
3. ✅ Provision and check Python interpreter
4. ✅ Error isolation for per-agent registration
@FScholPer
FScholPer merged commit eab7be1 into main Oct 22, 2026
4 checks passed
@FScholPer
FScholPer deleted the fscholper/agent-context-feature branch October 22, 2026 13:10
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.

3 participants