MCPcopy Create free account
hub / github.com/arctic-cli/interface / ExamplePlugin

Function ExamplePlugin

packages/plugin/src/example.ts:4–18  ·  view source on GitHub ↗
(ctx)

Source from the content-addressed store, hash-verified

2import { tool } from "./tool"
3
4export const ExamplePlugin: Plugin = async (ctx) => {
5 return {
6 tool: {
7 mytool: tool({
8 description: "This is a custom tool",
9 args: {
10 foo: tool.schema.string().describe("foo"),
11 },
12 async execute(args) {
13 return `Hello ${args.foo}!`
14 },
15 }),
16 },
17 }
18}

Callers

nothing calls this directly

Calls 1

toolFunction · 0.90

Tested by

no test coverage detected