@tensor-cad/mcp 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/server.d.ts ADDED
@@ -0,0 +1,31 @@
1
+ /**
2
+ * The TensorCAD MCP server.
3
+ *
4
+ * Headless by design: tools operate on `.tensorcad.json` files and the built-in
5
+ * reference architectures, and designs cross calls as an explicit
6
+ * server-minted `design_id` rather than as connection state, which is what the
7
+ * 2026-07-28 revision asks for.
8
+ */
9
+ import { McpServer } from "@modelcontextprotocol/server";
10
+ import { type FileStoreOptions } from "./store/file-store.js";
11
+ import type { DocumentStore } from "./store/types.js";
12
+ import type { BridgeServer } from "./bridge/server.js";
13
+ export declare const SERVER_NAME = "tensorcad";
14
+ /**
15
+ * What the server tells a client it is, read from the package rather than
16
+ * written here. A second copy is a copy that goes stale, and this one is
17
+ * compared against `server.json` and against what the registry was told — so
18
+ * the failure would be a published version claiming to be another.
19
+ */
20
+ export declare const SERVER_VERSION: string;
21
+ export interface ServerOptions extends FileStoreOptions {
22
+ /** Defaults to a `FileStore` rooted at the working directory. */
23
+ store?: DocumentStore;
24
+ /**
25
+ * The live editor bridge, when one is running. Given one, the server tells
26
+ * its client that a design's resources changed whenever the *human* changed
27
+ * them — which is the half of the bridge an agent can act on.
28
+ */
29
+ bridge?: BridgeServer;
30
+ }
31
+ export declare function createServer(options?: ServerOptions): McpServer;
package/server.json ADDED
@@ -0,0 +1,32 @@
1
+ {
2
+ "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
3
+ "name": "io.github.filip-pajalic/tensorcad",
4
+ "description": "Design transformer LLM architectures and report their parameters, FLOPs, memory and cost",
5
+ "version": "0.1.0",
6
+ "repository": {
7
+ "url": "https://github.com/Filip-Pajalic/TensorCAD",
8
+ "source": "github",
9
+ "subfolder": "packages/mcp"
10
+ },
11
+ "websiteUrl": "https://github.com/Filip-Pajalic/TensorCAD",
12
+ "packages": [
13
+ {
14
+ "registryType": "npm",
15
+ "registryBaseUrl": "https://registry.npmjs.org",
16
+ "identifier": "@tensor-cad/mcp",
17
+ "version": "0.1.0",
18
+ "runtimeHint": "npx",
19
+ "transport": {
20
+ "type": "stdio"
21
+ },
22
+ "environmentVariables": [
23
+ {
24
+ "name": "TENSORCAD_ROOT",
25
+ "description": "Directory the server scans for .tensorcad.json files and resolves relative paths against. Defaults to the process working directory.",
26
+ "isRequired": false,
27
+ "isSecret": false
28
+ }
29
+ ]
30
+ }
31
+ ]
32
+ }
package/stdio.d.ts ADDED
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env bun
2
+ /**
3
+ * The program. `index.ts` is the library; this is the thing you run.
4
+ *
5
+ * Two files rather than one with a guard in it, because a module that starts a
6
+ * server when it happens to be the entry point is a module whose behaviour
7
+ * depends on how it was loaded — which is exactly what broke when it was first
8
+ * put through a bundler for the desktop bundle.
9
+ */
10
+ export {};