@cnbcool/mcp-server 0.1.0-beta.3 → 0.1.0
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.
- package/README.md +7 -6
- package/package.json +1 -3
package/README.md
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
# CNB
|
|
1
|
+
# CNB MCP Server
|
|
2
2
|
|
|
3
|
-
https://cnb.cool toolkits for LLMs supporting the MCP protocol
|
|
3
|
+
CNB(https://cnb.cool) toolkits for LLMs supporting the MCP protocol
|
|
4
4
|
|
|
5
5
|
## How to develop
|
|
6
6
|
|
|
7
7
|
1. `npm install`
|
|
8
|
-
2.
|
|
9
|
-
3. `
|
|
10
|
-
4. `
|
|
8
|
+
2. `npx openapi-typescript@5.4.2 https://api.cnb.cool/swagger.json -o src/schema.d.ts`
|
|
9
|
+
3. Rename `.env.example` to `.env` and fill in the values
|
|
10
|
+
4. `npm build`
|
|
11
|
+
5. `npx @modelcontextprotocol/inspector node dist/index.js`
|
|
11
12
|
|
|
12
13
|
## How to configure
|
|
13
14
|
|
|
@@ -20,7 +21,7 @@ https://cnb.cool toolkits for LLMs supporting the MCP protocol
|
|
|
20
21
|
"command": "node",
|
|
21
22
|
"args": ["/path/to/cnbcool/mcp-server/dist/index.js"],
|
|
22
23
|
"env": {
|
|
23
|
-
"API_BASE_URL": "<BASE_URL>",
|
|
24
|
+
"API_BASE_URL": "<BASE_URL>", // optional, defualt vaule: https://api.cnb.cool
|
|
24
25
|
"API_TOKEN": "<YOUR_TOKEN>"
|
|
25
26
|
}
|
|
26
27
|
}
|
package/package.json
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cnbcool/mcp-server",
|
|
3
3
|
"description": "CMB MCP server",
|
|
4
|
-
"version": "0.1.0
|
|
4
|
+
"version": "0.1.0",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"bin": {
|
|
7
7
|
"cnbcool-mcp-server": "dist/index.js"
|
|
8
8
|
},
|
|
9
9
|
"type": "module",
|
|
10
10
|
"scripts": {
|
|
11
|
-
"postinstall": "openapi-typescript https://api.cnb.cool/swagger.json -o src/schema.d.ts",
|
|
12
11
|
"build": "tsc",
|
|
13
12
|
"start": "node dist/index.js"
|
|
14
13
|
},
|
|
@@ -39,7 +38,6 @@
|
|
|
39
38
|
},
|
|
40
39
|
"devDependencies": {
|
|
41
40
|
"@types/node": "^22.13.9",
|
|
42
|
-
"openapi-typescript": "^5.4.2",
|
|
43
41
|
"typescript": "^5.8.2"
|
|
44
42
|
}
|
|
45
43
|
}
|