Skip to content

Commit 3e9b955

Browse files
committed
feat: Enhance autonomous execution capabilities with sampling tools
- Updated `imitate-tool-use.middleware.ts` to import Tool from the correct path. - Introduced new sampling execution prompts in `index.ts` for agentic reasoning and workflow execution. - Added `sampling` option in `set-up-mcp-compose.ts` to enable sampling-based execution. - Modified types in `types.ts` to include sampling parameters for tool and workflow registration. - Created `tool-tag-processor.ts` to process tool tags in descriptions and replace them with action tags. - Removed deprecated Wecom utility functions from `wecom.ts`. - Implemented new files for agentic and sampling executors, including `agentic-executor.ts`, `agentic-sampling-executor.ts`, and others for workflow management. - Refactored workflow registration and execution logic to support new sampling features.
1 parent c284110 commit 3e9b955

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+1906
-885
lines changed

deno.lock

Lines changed: 7 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/core/deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"hono": "npm:hono@^4.7.5",
2525
"htmlparser2": "npm:htmlparser2@^10.0.0",
2626
"json-schema-to-zod": "npm:json-schema-to-zod@^2.6.1",
27-
"jsonrepair": "npm:jsonrepair@^3.12.0",
27+
"jsonrepair": "npm:jsonrepair@^3.13.0",
2828
"minimist": "npm:minimist@^1.2.8",
2929
"remeda": "npm:remeda@^2.21.2",
3030
"zod": "npm:zod@^3.24.2",
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*/
1212

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

1616
export const server = await mcpc(
1717
[
@@ -37,7 +37,6 @@ Available tools:
3737
<tool name="@wonderwhy-er/desktop-commander.list_directory"/>
3838
<tool name="@wonderwhy-er/desktop-commander.create_directory"/>
3939
<tool name="@wonderwhy-er/desktop-commander.move_file"/>
40-
<tool name="@wonderwhy-er/desktop-commander.delete_file"/>
4140
<tool name="@wonderwhy-er/desktop-commander.read_file"/>
4241
<tool name="@wonderwhy-er/desktop-commander.write_file"/>
4342
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*/
1313

1414
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
15-
import { mcpc } from "../../mod.ts";
15+
import { mcpc } from "../mod.ts";
1616

1717
export const server = await mcpc(
1818
[
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*/
1313

1414
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
15-
import { mcpc } from "../../mod.ts";
15+
import { mcpc } from "../mod.ts";
1616

1717
export const server = await mcpc(
1818
[
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*/
1515

1616
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
17-
import { mcpc } from "../../mod.ts";
17+
import { mcpc } from "../mod.ts";
1818
import { jsonSchema } from "ai";
1919

2020
export const server = await mcpc(
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*/
1313

1414
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
15-
import { ComposableMCPServer } from "../../src/compose.ts";
15+
import { ComposableMCPServer } from "../src/compose.ts";
1616

1717
// Create a server instance for advanced tool management
1818
const server = new ComposableMCPServer(
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*/
1414

1515
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
16-
import { mcpc } from "../../mod.ts";
16+
import { mcpc } from "../mod.ts";
1717

1818
export const server = await mcpc(
1919
[
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*/
1414

1515
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
16-
import { mcpc } from "../../mod.ts";
16+
import { mcpc } from "../mod.ts";
1717

1818
export const server = await mcpc(
1919
[
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
1010
import { jsonSchema } from "ai";
11-
import { mcpc } from "../../mod.ts";
11+
import { mcpc } from "../mod.ts";
1212

1313
export const server = await mcpc(
1414
[

0 commit comments

Comments
 (0)