Skip to content

codemode: add host-side runtime APIs#1969

Merged
mattzcarey merged 2 commits into
mainfrom
feat/codemode-host-apis
Jul 21, 2026
Merged

codemode: add host-side runtime APIs#1969
mattzcarey merged 2 commits into
mainfrom
feat/codemode-host-apis

Conversation

@mattzcarey

@mattzcarey mattzcarey commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add framework-neutral runtime.execute(), runtime.search(), and runtime.describe() APIs for MCP servers and other non-AI-SDK hosts
  • surface connector requiresApproval annotations in method search and describe results
  • document direct host execution and discovery, with runtime-handle coverage

This extracts the SDK changes from #1954 so that PR can remain an example-only change using the already released runtime.tool().execute(...) API. The two PRs are independent.

Validation

  • pnpm --filter @cloudflare/codemode test — 378 passed
  • pnpm --filter @cloudflare/codemode build — passed
  • pnpm run check — 117 projects typechecked; exports, formatting, and lint passed

Open in Devin Review

@changeset-bot

changeset-bot Bot commented Jul 21, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: b49a1d1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@cloudflare/codemode Patch

Not sure what this means? Click here to learn what changesets are.

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

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 1 additional finding.

Open in Devin Review

@pkg-pr-new

pkg-pr-new Bot commented Jul 21, 2026

Copy link
Copy Markdown

Open in StackBlitz

agents

npm i https://pkg.pr.new/agents@1969

@cloudflare/ai-chat

npm i https://pkg.pr.new/@cloudflare/ai-chat@1969

@cloudflare/codemode

npm i https://pkg.pr.new/@cloudflare/codemode@1969

create-think

npm i https://pkg.pr.new/create-think@1969

hono-agents

npm i https://pkg.pr.new/hono-agents@1969

@cloudflare/shell

npm i https://pkg.pr.new/@cloudflare/shell@1969

@cloudflare/think

npm i https://pkg.pr.new/@cloudflare/think@1969

@cloudflare/voice

npm i https://pkg.pr.new/@cloudflare/voice@1969

@cloudflare/worker-bundler

npm i https://pkg.pr.new/@cloudflare/worker-bundler@1969

commit: b49a1d1

@mattzcarey
mattzcarey merged commit 80ad8de into main Jul 21, 2026
4 checks passed
@mattzcarey
mattzcarey deleted the feat/codemode-host-apis branch July 21, 2026 15:24
@github-actions github-actions Bot mentioned this pull request Jul 20, 2026
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