@tokenlabai/mcp-server 0.2.1 → 0.2.2
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 +1 -1
- package/package.json +1 -1
- package/server.json +2 -2
- package/src/index.js +1 -1
- package/test/mcp-tools.test.js +6 -0
package/README.md
CHANGED
|
@@ -58,7 +58,7 @@ This repository includes `server.json` for the official MCP Registry.
|
|
|
58
58
|
|
|
59
59
|
Current publication:
|
|
60
60
|
|
|
61
|
-
- npm package: `@tokenlabai/mcp-server@0.2.
|
|
61
|
+
- npm package: `@tokenlabai/mcp-server@0.2.2`
|
|
62
62
|
- MCP registry name: `io.github.hedging8563/tokenlab`
|
|
63
63
|
- Official MCP Registry status: active
|
|
64
64
|
- `package.json.mcpName`: `io.github.hedging8563/tokenlab`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tokenlabai/mcp-server",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "MCP server for TokenLab model discovery, pricing, OpenAI-compatible Chat Completions, native endpoint guidance, and optional inference helpers.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"mcpName": "io.github.hedging8563/tokenlab",
|
package/server.json
CHANGED
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
"url": "https://github.com/hedging8563/tokenlab-mcp-server",
|
|
8
8
|
"source": "github"
|
|
9
9
|
},
|
|
10
|
-
"version": "0.2.
|
|
10
|
+
"version": "0.2.2",
|
|
11
11
|
"packages": [
|
|
12
12
|
{
|
|
13
13
|
"registryType": "npm",
|
|
14
14
|
"identifier": "@tokenlabai/mcp-server",
|
|
15
|
-
"version": "0.2.
|
|
15
|
+
"version": "0.2.2",
|
|
16
16
|
"transport": {
|
|
17
17
|
"type": "stdio"
|
|
18
18
|
},
|
package/src/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
|
4
4
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
7
|
-
const VERSION = "0.2.
|
|
7
|
+
const VERSION = "0.2.2";
|
|
8
8
|
const API_BASE = (process.env.TOKENLAB_API_BASE || "https://api.tokenlab.sh").replace(/\/$/, "");
|
|
9
9
|
const API_KEY = process.env.TOKENLAB_API_KEY || "";
|
|
10
10
|
|
package/test/mcp-tools.test.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import assert from "node:assert/strict";
|
|
2
2
|
import { spawn } from "node:child_process";
|
|
3
|
+
import { stat } from "node:fs/promises";
|
|
3
4
|
import test from "node:test";
|
|
4
5
|
|
|
5
6
|
function startServer() {
|
|
@@ -70,3 +71,8 @@ test("advertises an OpenAI-compatible Chat Completions tool", async (t) => {
|
|
|
70
71
|
assert.equal(tool.inputSchema.properties.messages.type, "array");
|
|
71
72
|
assert.equal(tool.inputSchema.properties.stream, undefined);
|
|
72
73
|
});
|
|
74
|
+
|
|
75
|
+
test("ships an executable npm binary", async () => {
|
|
76
|
+
const { mode } = await stat(new URL("../src/index.js", import.meta.url));
|
|
77
|
+
assert.notEqual(mode & 0o111, 0);
|
|
78
|
+
});
|