The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 04:45 UTC
| 1 | import * as Effect from "effect/Effect"; |
| 2 | |
| 3 | import * as McpToolAccess from "../../McpToolAccess.ts"; |
| 4 | import { MessageToolkit } from "./tools.ts"; |
| 5 | |
| 6 | const handlers = { |
| 7 | send_to_user: McpToolAccess.actsAsCaller((input) => |
| 8 | Effect.succeed({ |
| 9 | sentMessage: input.message, |
| 10 | message: "Shown to the user. Don't repeat it.", |
| 11 | }), |
| 12 | ), |
| 13 | } satisfies McpToolAccess.Handlers<typeof MessageToolkit.tools>; |
| 14 | |
| 15 | export const layer = McpToolAccess.toLayer(MessageToolkit, handlers); |