Skip to content

fix(mcp): support Host composition and prepare alpha.2 - #140

Merged
krapnikkk merged 4 commits into
nextfrom
codex/fix-mcp-host-composition
Sep 7, 2026
Merged

fix(mcp): support Host composition and prepare alpha.2#140
krapnikkk merged 4 commits into
nextfrom
codex/fix-mcp-host-composition

Conversation

@krapnikkk

Copy link
Copy Markdown
Contributor

Addresses the upstream MCP composition gaps reported in #138 and prepares 0.5.0-alpha.2 on next.

  • Use SDK-native tool discovery so Host registrations before/after connection and public registration handles remain visible. Preserve compact, validated canonical schemas through public Zod metadata.
  • Add per-tool toolPolicies with declared Host failure schemas. Validate input before a policy, consume approval in the Host, and delegate once to the original Backend method with unchanged arguments/results. Keep Backend contracts and response budgets authoritative.
  • Expose instructions through the public factory and SDK initialize handshake; synchronize API guidance and bilingual changelogs.

Validation: full pnpm check:ci passed, including 560 AVA tests, repository checks, contracts/docs, five installed tarballs, strict ESM/CJS declarations, 10 reference agent evaluations and real Chromium storage safety checks. Host composition tests cover dynamic discovery, instructions, installed docs/prompts, real save/materialize writes, one-use grants, Backend failures and response budgets.

Scope: upstream OpenFairyGUI only. Downstream Host adoption and downstream acceptance remain owned by the consumer; this PR does not claim that migration is complete.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 7, 2026

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-09-07T11:06:37.419845Z a7719ce 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.

@krapnikkk
krapnikkk merged commit a18700f into next Sep 7, 2026
5 checks passed
@krapnikkk
krapnikkk deleted the codex/fix-mcp-host-composition branch September 8, 2026 03:03
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