Skip to content

Declare reviewed ThreadDesk MCP read-only tools for dynamic discovery - #85

Merged
landjunge merged 2 commits into
mainfrom
feat/mcp-readonly-annotations-20261021
Oct 21, 2026
Merged

landjunge merged 2 commits into
mainfrom
feat/mcp-readonly-annotations-20261021

Conversation

@landjunge

Copy link
Copy Markdown
Owner

Adds read-only annotations to audited non-mutating ThreadDesk MCP tools, with regression checks. Write, context-changing and disk-writing tools remain unannotated. No original operations or input schemas are changed. This supports an opt-in KiraBridge dynamic read proxy. Source code has not been installed on a user device. Tests are committed but full repository/macOS CI has not been executed here.

@landjunge
landjunge merged commit 7c45d14 into main Oct 21, 2026
7 checks passed

@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: 80df6eff55

ℹ️ 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 on lines +260 to +263
_tool["annotations"] = {
"readOnlyHint": True,
"destructiveHint": False,
"openWorldHint": False,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Negotiate a version that supports tool annotations

Every stdio initialization still advertises protocolVersion: "2024-11-05" in src/threaddesk/ui/mcp_stdio.py:33-40, but tool annotations were introduced only in MCP 2025-03-26, as confirmed by the MCP maintainers. Consequently, a version-aware client connected under the advertised contract may discard or reject these fields, so the dynamic proxy this change targets cannot reliably discover them; negotiate at least 2025-03-26 before emitting the annotations.

Useful? React with 👍 / 👎.

Comment on lines +251 to +256
"list_threads",
"get_thread",
"current_thread",
"list_snapshots",
"list_gnom_jobs",
"check_gate",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Do not mark revision-repairing JSON reads as read-only

For a JSON workspace containing an unanchored legacy thread, or one changed by an older writer, calls such as list_threads, get_thread, current_thread, get_reentry, list_snapshots, and check_gate with an ID reach JsonStore.get_thread(), which persists a revision anchor and can rewrite the thread while incrementing its revision (json_store.py:472-499). That contradicts the MCP definition that readOnlyHint: true means the tool does not modify its environment (official schema), allowing the new read proxy to cause persistent workspace changes; withhold the hint for these paths or perform the repair before exposing them as read-only.

Useful? React with 👍 / 👎.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-21T19:37:38.559155Z 80df6ef PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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