aira-mcp 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +3 -16
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -338,7 +338,7 @@ function handleMCPRequest(request) {
338
338
  },
339
339
  serverInfo: {
340
340
  name: 'Aira MCP Service',
341
- version: '1.0.4',
341
+ version: '1.0.5',
342
342
  description: 'Aria2 MCP (Model Context Protocol) Service CLI',
343
343
  author: '',
344
344
  license: 'ISC'
@@ -461,18 +461,5 @@ process.on('SIGTERM', () => {
461
461
  process.exit(0);
462
462
  });
463
463
 
464
- // 初始化MCP服务就绪通知
465
- const initResponse = {
466
- jsonrpc: '2.0',
467
- id: null,
468
- result: {
469
- message: 'MCP Service initialized',
470
- httpPort: port,
471
- status: 'ready'
472
- }
473
- };
474
-
475
- // 发送初始化响应
476
- setTimeout(() => {
477
- process.stdout.write(JSON.stringify(initResponse) + '\n');
478
- }, 500);
464
+ // MCP服务不需要发送自定义的初始化响应
465
+ // 客户端会通过调用initialize方法来获取服务信息
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aira-mcp",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "main": "index.js",
5
5
  "bin": {
6
6
  "aira-mcp": "index.js"