feat: MCP Server运行成功—stdio传输+7个Tool+Zod schema

- StdioServerTransport(stdin/stdout标准MCP协议)
- Zod schema注册(file_list/read/write/move/exec/process_list/sysinfo)
- pnpm install完成+SDK依赖解析
- 添加zod依赖
This commit is contained in:
LukeMackin
2026-07-22 20:06:40 +08:00
parent 3d82964075
commit 9f912da9fd
4 changed files with 46 additions and 160 deletions

View File

@@ -1,19 +1,20 @@
{
"version": "0.1.0",
"dependencies": {
"@yuzu-gca/shared": "workspace:*",
"@modelcontextprotocol/sdk": "^1.0.0"
},
"types": "dist/index.d.ts",
"scripts": {
"dev": "tsc --watch",
"build": "tsc"
},
"name": "@yuzu-gca/server",
"private": true,
"devDependencies": {
"@types/node": "^20.0.0",
"typescript": "^5.0.0"
},
"main": "dist/index.js"
"version": "0.1.0",
"dependencies": {
"@modelcontextprotocol/sdk": "^1.0.0",
"@yuzu-gca/shared": "workspace:*",
"zod": "^4.4.3"
},
"types": "dist/index.d.ts",
"scripts": {
"dev": "tsc --watch",
"build": "tsc"
},
"name": "@yuzu-gca/server",
"private": true,
"devDependencies": {
"@types/node": "^20.0.0",
"typescript": "^5.0.0"
},
"main": "dist/index.js"
}