@tokcalc/mcp-server 0.2.0-alpha.2 → 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.
- package/dist/http.js +17584 -11694
- package/dist/index.js +7 -3
- package/dist/server.js +21185 -0
- package/package.json +30 -2
package/dist/index.js
CHANGED
|
@@ -12858,6 +12858,7 @@ function datetime2(params) {
|
|
|
12858
12858
|
}
|
|
12859
12859
|
// node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
|
|
12860
12860
|
var LATEST_PROTOCOL_VERSION = "2025-11-25";
|
|
12861
|
+
var DEFAULT_NEGOTIATED_PROTOCOL_VERSION = "2025-03-26";
|
|
12861
12862
|
var SUPPORTED_PROTOCOL_VERSIONS = [LATEST_PROTOCOL_VERSION, "2025-06-18", "2025-03-26", "2024-11-05", "2024-10-07"];
|
|
12862
12863
|
var RELATED_TASK_META_KEY = "io.modelcontextprotocol/related-task";
|
|
12863
12864
|
var JSONRPC_VERSION = "2.0";
|
|
@@ -13031,6 +13032,7 @@ var InitializeRequestSchema = RequestSchema.extend({
|
|
|
13031
13032
|
method: literal("initialize"),
|
|
13032
13033
|
params: InitializeRequestParamsSchema
|
|
13033
13034
|
});
|
|
13035
|
+
var isInitializeRequest = (value) => InitializeRequestSchema.safeParse(value).success;
|
|
13034
13036
|
var ServerCapabilitiesSchema = object({
|
|
13035
13037
|
experimental: record(string2(), AssertObjectSchema).optional(),
|
|
13036
13038
|
logging: AssertObjectSchema.optional(),
|
|
@@ -21120,8 +21122,10 @@ function handleListGpus(input) {
|
|
|
21120
21122
|
filtered = filtered.filter((g) => g.vendor === input.vendor);
|
|
21121
21123
|
if (input.category)
|
|
21122
21124
|
filtered = filtered.filter((g) => g.category === input.category);
|
|
21123
|
-
if (input.minVramGb !== undefined)
|
|
21124
|
-
|
|
21125
|
+
if (input.minVramGb !== undefined) {
|
|
21126
|
+
const minVram = input.minVramGb;
|
|
21127
|
+
filtered = filtered.filter((g) => g.vramGb >= minVram);
|
|
21128
|
+
}
|
|
21125
21129
|
return {
|
|
21126
21130
|
count: filtered.length,
|
|
21127
21131
|
gpus: filtered.map((g) => ({
|
|
@@ -21212,7 +21216,7 @@ var TOOL_DEFINITIONS = [
|
|
|
21212
21216
|
}
|
|
21213
21217
|
];
|
|
21214
21218
|
function createMcpServer() {
|
|
21215
|
-
const server = new Server({ name: "tokcalc", version: "0.2.0
|
|
21219
|
+
const server = new Server({ name: "tokcalc", version: "0.2.0" }, {
|
|
21216
21220
|
capabilities: {
|
|
21217
21221
|
tools: {}
|
|
21218
21222
|
}
|