Skip to content

fix(opencode): sanitize MCP tool schemas for Anthropic root combinators - #149

Open
kvnloo wants to merge 1 commit into
devfrom
tip/47542-anthropic-root-combinators
Open

kvnloo wants to merge 1 commit into
devfrom
tip/47542-anthropic-root-combinators

Conversation

@kvnloo

@kvnloo kvnloo commented Sep 27, 2026

Copy link
Copy Markdown
Owner

Tip leaf (fork-only) — CLEAN

Maps to work-order issue #148. Upstream origin anomalyco#47542 (not touched / not promoted).

What: Sanitize MCP tool schemas for Anthropic root combinators so root-level anyOf/oneOf/allOf flatten (or fall back to a parameterless object).

Commit: 168e2d8c9d0e9564d7996e241a197604096b01be
Origin tip SHA: ab8cd4302da7

Proof: fail→pass on packages/opencode/test/provider/transform.test.ts -t "anthropic root combinators" (GREEN 7 / NEG 5 fail / RESTORE 7).

github_writes_origin: 0. Codex promote parked.

@kvnloo kvnloo added the grok bot Posted by Grok Bot OSS review dump label Sep 27, 2026
@github-actions

Copy link
Copy Markdown

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions

Copy link
Copy Markdown

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • PR description is missing required template sections. Please use the PR template.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

kvnloo commented Sep 29, 2026

Copy link
Copy Markdown
Owner Author

READY_UPSTREAM

Rechecked before promotion:

GitHub App cannot write to anomalyco/opencode from this environment (403). Hermes/local-gh may post the evidence comment from this fork PR. Do not open a duplicate PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

grok bot Posted by Grok Bot OSS review dump needs:issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant