@tokcalc/mcp-server 0.2.4 → 0.2.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.
- package/dist/http.js +365 -5167
- package/dist/index.js +410 -5212
- package/dist/server.js +2 -0
- package/package.json +5 -3
package/dist/server.js
CHANGED
|
@@ -13125,6 +13125,7 @@ function datetime2(params) {
|
|
|
13125
13125
|
}
|
|
13126
13126
|
// node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
|
|
13127
13127
|
var LATEST_PROTOCOL_VERSION = "2025-11-25";
|
|
13128
|
+
var DEFAULT_NEGOTIATED_PROTOCOL_VERSION = "2025-03-26";
|
|
13128
13129
|
var SUPPORTED_PROTOCOL_VERSIONS = [LATEST_PROTOCOL_VERSION, "2025-06-18", "2025-03-26", "2024-11-05", "2024-10-07"];
|
|
13129
13130
|
var RELATED_TASK_META_KEY = "io.modelcontextprotocol/related-task";
|
|
13130
13131
|
var JSONRPC_VERSION = "2.0";
|
|
@@ -13298,6 +13299,7 @@ var InitializeRequestSchema = RequestSchema.extend({
|
|
|
13298
13299
|
method: literal("initialize"),
|
|
13299
13300
|
params: InitializeRequestParamsSchema
|
|
13300
13301
|
});
|
|
13302
|
+
var isInitializeRequest = (value) => InitializeRequestSchema.safeParse(value).success;
|
|
13301
13303
|
var ServerCapabilitiesSchema = object2({
|
|
13302
13304
|
experimental: record(string2(), AssertObjectSchema).optional(),
|
|
13303
13305
|
logging: AssertObjectSchema.optional(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
{
|
|
2
2
|
"name": "@tokcalc/mcp-server",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"mcpName": "io.github.stevecrates489-commits/tokcalc",
|
|
5
5
|
"description": "tokcalc MCP server — open-source LLM serving capacity planner for AI agents. v0.2.1: stdio + stateless HTTP transport with bearer API key auth + KV-backed rate limiting + public hosted endpoint. 7 read-only tools: estimate_capacity, compare_gpus, recommend_topology, estimate_api_vs_self_host, list_models, list_gpus, get_mlperf_benchmarks.",
|
|
6
6
|
"type": "module",
|
|
@@ -53,7 +53,9 @@
|
|
|
53
53
|
"./package.json": "./package.json"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
|
-
"build": "bun build ./index.ts ./server.ts ./http.ts --outdir ./dist --target node"
|
|
56
|
+
"build": "bun build ./index.ts ./server.ts ./http.ts --outdir ./dist --target node",
|
|
57
|
+
"prepublishOnly": "node scripts/prepublish-check.js",
|
|
58
|
+
"verify:dist": "node scripts/prepublish-check.js"
|
|
57
59
|
},
|
|
58
60
|
"dependencies": {
|
|
59
61
|
"@modelcontextprotocol/sdk": "^1.30.1",
|