Skip to content

Commit bfbcc9f

Browse files
committed
feat: update version to 0.1.10; enhance tool visibility handling and improve logging output
1 parent 23f2d93 commit bfbcc9f

File tree

14 files changed

+235
-289
lines changed

14 files changed

+235
-289
lines changed

packages/core/deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mcpc/core",
3-
"version": "0.1.9",
3+
"version": "0.1.10",
44
"tasks": {
55
"server:compile": "echo \"no need to compile\"",
66
"test": "deno test --allow-all tests/",

packages/core/examples/01-basic-composition.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,20 @@
1111
*/
1212

1313
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
14-
import { mcpc } from "../mod.ts";
14+
import { type ComposeDefinition, mcpc } from "../mod.ts";
1515

16-
export const toolDefinitions = [
16+
export const toolDefinitions: ComposeDefinition[] = [
1717
{
1818
name: "file-organizer",
1919
description:
2020
`I am a smart file organizer that helps users manage their files efficiently.
2121
2222
Available tools:
23-
<tool name="@wonderwhy-er/desktop-commander.list_directory"/>
24-
<tool name="@wonderwhy-er/desktop-commander.create_directory"/>
23+
<tool name="@wonderwhy-er/desktop-commander.list_directory" global/>
24+
<tool name="@wonderwhy-er/desktop-commander.create_directory" hide/>
2525
<tool name="@wonderwhy-er/desktop-commander.move_file"/>
2626
<tool name="@wonderwhy-er/desktop-commander.read_file"/>
27-
<tool name="@wonderwhy-er/desktop-commander.write_file"/>
27+
<tool name="@wonderwhy-er/desktop-commander.write_file">
2828
2929
I can:
3030
1. List directory contents to understand the current file structure
@@ -41,7 +41,7 @@ I always ask for confirmation before making destructive changes and provide clea
4141
"@wonderwhy-er/desktop-commander": {
4242
command: "npx",
4343
args: ["-y", "@wonderwhy-er/desktop-commander@latest"],
44-
transportType: "stdio",
44+
transportType: "stdio" as const,
4545
},
4646
},
4747
},

packages/core/examples/02-agentic-data-analyst.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,12 @@ My autonomous approach ensures thorough analysis tailored to each unique dataset
6565
"code-runner": {
6666
command: "deno",
6767
args: ["run", "--allow-all", "jsr:@mcpc/code-runner-mcp/bin"],
68+
transportType: "stdio",
6869
},
6970
"@wonderwhy-er/desktop-commander": {
7071
command: "npx",
7172
args: ["-y", "@wonderwhy-er/desktop-commander@latest"],
73+
transportType: "stdio",
7274
},
7375
},
7476
},

0 commit comments

Comments
 (0)