|
15 | 15 | import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"; |
16 | 16 | import { mcpc } from "../mod.ts"; |
17 | 17 |
|
18 | | -export const server = await mcpc( |
19 | | - [ |
20 | | - { |
21 | | - name: "multi-mcp-web-analyzer", |
22 | | - version: "1.0.0", |
23 | | - }, |
24 | | - { capabilities: { tools: { listChanged: true } } }, |
25 | | - ], |
26 | | - [ |
| 18 | +export const server = await mcpc({ |
| 19 | + name: "multi-mcp-web-analyzer", |
| 20 | + version: "1.0.0", |
| 21 | + capabilities: { tools: { listChanged: true } }, |
| 22 | + |
| 23 | + agents: [ |
27 | 24 | { |
28 | 25 | name: "web-analyzer", |
29 | | - |
30 | | - options: { |
31 | | - mode: "agentic", |
32 | | - }, |
| 26 | + mode: "agentic", |
33 | 27 |
|
34 | 28 | description: |
35 | 29 | `I am a comprehensive web analyzer that combines multiple MCP servers to perform sophisticated web content analysis and reporting. |
@@ -83,27 +77,22 @@ I intelligently coordinate between browser automation, data processing, and file |
83 | 77 | - PDF reports for sharing and presentation |
84 | 78 | - Screenshots and visual documentation`, |
85 | 79 |
|
86 | | - deps: { |
87 | | - mcpServers: { |
88 | | - "@microsoft/playwright-mcp": { |
89 | | - command: "npx", |
90 | | - args: ["@playwright/mcp@latest", "--image-responses=emit"], |
91 | | - transportType: "stdio", |
92 | | - }, |
93 | | - "code-runner": { |
94 | | - command: "deno", |
95 | | - args: ["run", "--allow-all", "jsr:@mcpc/code-runner-mcp/bin"], |
96 | | - transportType: "stdio", |
97 | | - }, |
98 | | - "@wonderwhy-er/desktop-commander": { |
99 | | - command: "npx", |
100 | | - args: ["-y", "@wonderwhy-er/desktop-commander@latest"], |
101 | | - transportType: "stdio", |
102 | | - }, |
| 80 | + mcpServers: { |
| 81 | + "@microsoft/playwright-mcp": { |
| 82 | + command: "npx", |
| 83 | + args: ["@playwright/mcp@latest", "--image-responses=emit"], |
| 84 | + }, |
| 85 | + "code-runner": { |
| 86 | + command: "deno", |
| 87 | + args: ["run", "--allow-all", "jsr:@mcpc/code-runner-mcp/bin"], |
| 88 | + }, |
| 89 | + "@wonderwhy-er/desktop-commander": { |
| 90 | + command: "npx", |
| 91 | + args: ["-y", "@wonderwhy-er/desktop-commander@latest"], |
103 | 92 | }, |
104 | 93 | }, |
105 | 94 | }, |
106 | 95 | ], |
107 | | -); |
| 96 | +}); |
108 | 97 |
|
109 | 98 | await server.connect(new StdioServerTransport()); |
0 commit comments