@tokcalc/mcp-server 0.2.0-alpha.1 → 0.2.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.
Files changed (4) hide show
  1. package/dist/http.js +17584 -11694
  2. package/dist/index.js +7 -3
  3. package/dist/server.js +21185 -0
  4. package/package.json +26 -3
package/package.json CHANGED
@@ -1,8 +1,11 @@
1
1
  {
2
2
  "name": "@tokcalc/mcp-server",
3
- "version": "0.2.0-alpha.1",
4
- "description": "tokcalc MCP server — open-source LLM serving capacity planner for AI agents. v0.2.0-alpha.1: stdio + stateless HTTP transports. 7 read-only tools: estimate_capacity, compare_gpus, recommend_topology, estimate_api_vs_self_host, list_models, list_gpus, get_mlperf_benchmarks.",
3
+ "version": "0.2.0",
4
+ "mcpName": "io.github.stevecrates489-commits/tokcalc",
5
+ "description": "tokcalc MCP server — open-source LLM serving capacity planner for AI agents. v0.2.0: 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.",
5
6
  "type": "module",
7
+ "main": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
6
9
  "license": "Apache-2.0",
7
10
  "bin": {
8
11
  "tokcalc-mcp": "./dist/index.js",
@@ -34,8 +37,28 @@
34
37
  "engines": {
35
38
  "node": ">=18"
36
39
  },
40
+ "exports": {
41
+ ".": {
42
+ "types": "./dist/index.d.ts",
43
+ "import": "./dist/index.js"
44
+ },
45
+ "./server": {
46
+ "types": "./dist/server.d.ts",
47
+ "import": "./dist/server.js"
48
+ },
49
+ "./server.js": {
50
+ "types": "./dist/server.d.ts",
51
+ "import": "./dist/server.js"
52
+ },
53
+ "./package.json": "./package.json"
54
+ },
55
+ "scripts": {
56
+ "build": "bun build ./index.ts ./server.ts ./http.ts --outdir ./dist --target node"
57
+ },
37
58
  "dependencies": {
38
59
  "@modelcontextprotocol/sdk": "^1.30.1",
60
+ "@upstash/ratelimit": "^2.0.3",
61
+ "@upstash/redis": "^1.34.0",
39
62
  "zod-to-json-schema": "^3.25.2"
40
63
  }
41
- }
64
+ }