Skip to content

feat: bootstrap first mcp server baseline - #1

Closed
FScholPer wants to merge 2 commits into
mainfrom
feat/initial-bootstrap
Closed

FScholPer wants to merge 2 commits into
mainfrom
feat/initial-bootstrap

Conversation

@FScholPer

Copy link
Copy Markdown
Contributor

Initial MCP server implementation, governance scaffolding, licensing artifacts, devcontainer setup, and pre-commit integration. governance is based on

Assisted-by: GitHub Copilot noreply@github.com

Frank Scholter Peres frank.scholter_peres@mercedes-benz.com, Mercedes-Benz Tech Innovation GmbH
Provider Information

FScholPer added 2 commits May 22, 2026 14:32
Initial MCP server implementation, governance scaffolding, licensing artifacts, devcontainer setup, and pre-commit integration.

Assisted-by: GitHub Copilot <noreply@github.com>
Apply runtime-alignment updates, devcontainer docs, and current governance file revisions.

Assisted-by: GitHub Copilot <noreply@github.com>
@FScholPer
FScholPer requested a review from AlexanderLanin May 22, 2026 13:03
@FScholPer FScholPer closed this Sep 18, 2026
FScholPer added a commit that referenced this pull request Oct 21, 2026
Fixes all 4 issues from PR #49 review:

Issue #1 (P1 - HIGH): Windows platform compatibility
- Move fcntl import to try/except with graceful fallback
- Add platform-compatible locking for Windows support
- Update build() to handle missing fcntl module

Issue #2 (P2 - MEDIUM): Extraction output directory
- Clear GRAPHIFY_OUT env var in graphify subprocess
- Prevents interference with --out flag
- Ensures correct output location

Issue #3 (P2 - MEDIUM): Cache path sharing with context-discipline
- Add resolve_graph_path() public function
- Update MergedGraph.build() to check user cache
- Update _graph_setup_status() to check user cache
- Both consumers now find cached graphs

Issue #4 (P2 - MEDIUM): Registry seeding race condition
- Add locking around registry seeding in prepare()
- Recheck graph existence after lock acquisition
- Prevents concurrent cold starts from corrupting cache

Add comprehensive test coverage:
- 7 new tests for resolve_graph_path()
- Test for GRAPHIFY_OUT env clearing
- Test for locking race condition prevention
- Total: 19 tests passing

Update documentation:
- Add resolve_graph_path() usage example to README
- Document programmatic access API

All code passes:
- Ruff linter (clean)
- Pyright type checker (0 errors)
- Pytest test suite (19/19 passing)
FScholPer added a commit that referenced this pull request Oct 22, 2026
* Serve graphify from a user cache seeded by central graphs

graphify-codegraph now prepares the graph before starting the server:
an existing graphify-out in the repository is used as is, otherwise the
graph lives under ~/.local/share/score-agent. For eclipse-score repos an
empty cache is seeded from ghcr.io/eclipse-score/mcp-servers/graphs
(merge-base, then main) with sha256 digest check, and a locked code-only
build refreshes it in the background when HEAD moved.

Co-Authored-By: frank.scholter_peres <frank.scholter_peres@mercedes-benz.com>

* fix(graphify-codegraph): address PR review issues

Fixes all 4 issues from PR #49 review:

Issue #1 (P1 - HIGH): Windows platform compatibility
- Move fcntl import to try/except with graceful fallback
- Add platform-compatible locking for Windows support
- Update build() to handle missing fcntl module

Issue #2 (P2 - MEDIUM): Extraction output directory
- Clear GRAPHIFY_OUT env var in graphify subprocess
- Prevents interference with --out flag
- Ensures correct output location

Issue #3 (P2 - MEDIUM): Cache path sharing with context-discipline
- Add resolve_graph_path() public function
- Update MergedGraph.build() to check user cache
- Update _graph_setup_status() to check user cache
- Both consumers now find cached graphs

Issue #4 (P2 - MEDIUM): Registry seeding race condition
- Add locking around registry seeding in prepare()
- Recheck graph existence after lock acquisition
- Prevents concurrent cold starts from corrupting cache

Add comprehensive test coverage:
- 7 new tests for resolve_graph_path()
- Test for GRAPHIFY_OUT env clearing
- Test for locking race condition prevention
- Total: 19 tests passing

Update documentation:
- Add resolve_graph_path() usage example to README
- Document programmatic access API

All code passes:
- Ruff linter (clean)
- Pyright type checker (0 errors)
- Pytest test suite (19/19 passing)

* fix: resolve CI formatting and type checking issues

- Apply ruff formatting to 4 Python files
- Fix unused variable warnings (document, graph1, graph2)
- Add type annotation for seeded list

* fix: prioritize in-repo graph over cache and report correct path

When no graph exists, report the in-repo path (graphify-out/graph.json)
instead of the user cache path. This matches user expectations and the
graphify-codegraph prepare() behavior.

Fixes test failures in test_initialize_session_reports_missing_graph_setup
and test_query_graph_reports_missing_graph_setup.
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