Open History to see the last commit
1import * as Effect from "effect/Effect";
2import { Argument, Command } from "effect/cli";
3
4import { runAcpMcpCliFastPath } from "../mcp/AcpMcpStdioBridge.ts";
5
6/**
7 * The credential stays in the environment, never on the command line.
8 */
9export const acpMcpBridgeCommand = Command.make("acp-mcp-bridge").pipe(
10 Command.withDescription("Bridge T3 Code's MCP endpoint to stdio for ACP agents."),
11 Command.unlisted,
12 Command.withHandler(() => Effect.promise(() => runAcpMcpCliFastPath("acp-mcp-bridge", []))),
13);
14
15export const acpMcpCallCommand = Command.make("acp-mcp-call", {
16 tool: Argument.String("tool"),
17 argumentsJson: Argument.String("arguments-json"),
18}).pipe(
19 Command.withDescription("Call one T3 Code MCP tool from an ACP agent terminal."),
20 Command.unlisted,
21 Command.withHandler(({ tool, argumentsJson }) =>
22 Effect.promise(() => runAcpMcpCliFastPath("acp-mcp-call", [tool, argumentsJson])),
23 ),
24);