Skip to content

Code mode: inline code_execute and in-sandbox amcp.* discovery tools #1364

Closed

Description

@helpcodeai

Summary

The generic inline code tool and the in-sandbox discovery meta-tools. Depends on #1361, #1362, #1363.

Scope

  • code_execute: a tool that runs an ad-hoc program (model-authored) through the code-runner, read-only (bridge rejects write tools), with the invoker's rights. Offered only when the server's codeMode = 'inline' and the caller's role has the inlineCode capability.
  • amcp.search / amcp.describe / amcp.run inside the sandbox: map to the existing shared-toolset search/describe/run so code discovers and calls tools the same way the model does over /mcp. run is read/write-gated exactly like a direct call.
  • Wire into both the shared /mcp toolset and the per-server endpoint, honouring the same role scope, connector reach and shared-endpoint exclusions (payments read-only, crypto hidden).

Out of scope

Saved code tools (#1363); plan gating and Cloud quotas (gating issue).

Activity

  1. helpcodeai commented on Oct 31, 2026

    @helpcodeai
    ContributorAuthor

    Implemented on the per-server endpoint (commit 381582f): the code_execute tool and the in-sandbox amcp.search/describe/run bridge, read-only with the caller's own permissions, offered only when the server's codeMode is inline, a runner is configured, and the caller's role carries the inlineCode capability (RolesService.getCapabilities). Exposing inline code on the shared /mcp endpoint is deferred as an Enterprise-gated design (see #1365); code tools are currently excluded from the shared endpoint entirely.

  2. helpcodeai commented on Oct 31, 2026

    @helpcodeai
    ContributorAuthor

    Delivered in PR #1366 (merged into main as be4742a). Code mode ships off by default; the agent-proposal follow-up is tracked in #1369, and the Cloud runner operations in this issue remain operational/out-of-repo.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions