Skip to content

Route MCP graph reads from hook workspace context#233

Open
ScriptedAlchemy wants to merge 3 commits into
masterfrom
codex/hook-routing-context
Open

Route MCP graph reads from hook workspace context#233
ScriptedAlchemy wants to merge 3 commits into
masterfrom
codex/hook-routing-context

Conversation

@ScriptedAlchemy

Copy link
Copy Markdown
Owner

Summary

  • Adds connection-local hook workspace routing on the MCP server.
  • Resolves hook cwd to the nearest registered project ancestor and injects that project selector into follow-up registered-project graph reader calls when the caller did not provide an explicit selector.
  • Reuses the existing graph-reader dispatch policy and adds an integration test for a hook from one registered project routing tracedecay_files away from the active project.

Verification

  • CARGO_TARGET_DIR=/home/zack/projects/tracedecay/target cargo test --features test-transport --test mcp_suite hook_event_workspace_context_routes_followup_graph_reads -- --nocapture
  • CARGO_TARGET_DIR=/home/zack/projects/tracedecay/target cargo test --features test-transport --test mcp_suite mcp_handler_test::always_loaded_graph_tool_schemas_advertise_project_selectors
  • git diff --check

Known unrelated failures

  • CARGO_TARGET_DIR=/home/zack/projects/tracedecay/target cargo test --features test-transport --test mcp_suite mcp_server_test:: still has 2 failures unrelated to this change: test_tools_call_plain_text_failure_sets_is_error expects old changelog git failure text, and test_error_tracking expects status text to contain an errors field.

@changeset-bot

changeset-bot Bot commented Jul 2, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 5763837

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a47e6e82a5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/mcp/server.rs Outdated
@ScriptedAlchemy ScriptedAlchemy changed the base branch from feat/dashboard-ux-improvements to master July 2, 2026 09:22
@ScriptedAlchemy ScriptedAlchemy force-pushed the codex/hook-routing-context branch from a47e6e8 to 3b59ca3 Compare July 2, 2026 09:22
@ScriptedAlchemy ScriptedAlchemy force-pushed the codex/hook-routing-context branch from 29e29a2 to 447ed7b Compare July 2, 2026 09:43
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