mcp-adder-simple 1.0.0 → 1.0.1

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/mcp-adder.js +10 -1
  2. package/package.json +7 -2
package/mcp-adder.js CHANGED
@@ -29,7 +29,16 @@ rl.on('line', (line) => {
29
29
  try {
30
30
  switch (msg.method) {
31
31
  case 'initialize':
32
- result = { protocolVersion: '2024-10-07' };
32
+ result = {
33
+ protocolVersion: '2024-10-07',
34
+ serverInfo: {
35
+ name: 'mcp-adder-server',
36
+ version: '1.0.0'
37
+ },
38
+ capabilities: {
39
+ tools: {}
40
+ }
41
+ };
33
42
  console.error('[MCP] ← initialize 成功响应');
34
43
  break;
35
44
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcp-adder-simple",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "main": "mcp-adder.js",
5
5
  "bin": {
6
6
  "mcp-adder": "./mcp-adder.js"
@@ -8,7 +8,12 @@
8
8
  "scripts": {
9
9
  "start": "node mcp-adder.js"
10
10
  },
11
- "keywords": ["mcp", "model-context-protocol", "calculator", "add"],
11
+ "keywords": [
12
+ "mcp",
13
+ "model-context-protocol",
14
+ "calculator",
15
+ "add"
16
+ ],
12
17
  "author": "xiaosheng_2021",
13
18
  "license": "MIT",
14
19
  "description": "A simple MCP server for adding numbers",