@bitbybit-dev/mcp 1.4.0 → 1.5.0-rc.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 (85) hide show
  1. package/README.md +3 -3
  2. package/dist/descriptions.d.ts.map +1 -1
  3. package/dist/descriptions.js +10 -5
  4. package/dist/descriptions.js.map +1 -1
  5. package/dist/guides-split.d.ts +6 -0
  6. package/dist/guides-split.d.ts.map +1 -1
  7. package/dist/guides-split.js +17 -3
  8. package/dist/guides-split.js.map +1 -1
  9. package/dist/guides.generated.d.ts +4 -3
  10. package/dist/guides.generated.d.ts.map +1 -1
  11. package/dist/guides.generated.js +249 -17
  12. package/dist/guides.generated.js.map +1 -1
  13. package/dist/index-loader.d.ts.map +1 -1
  14. package/dist/index-loader.js +10 -5
  15. package/dist/index-loader.js.map +1 -1
  16. package/dist/index-reader.d.ts +11 -1
  17. package/dist/index-reader.d.ts.map +1 -1
  18. package/dist/index-reader.js +87 -22
  19. package/dist/index-reader.js.map +1 -1
  20. package/dist/index-shape.d.ts.map +1 -1
  21. package/dist/index-shape.js +4 -2
  22. package/dist/index-shape.js.map +1 -1
  23. package/dist/index-types.d.ts +7 -0
  24. package/dist/index-types.d.ts.map +1 -1
  25. package/dist/index-url.d.ts.map +1 -1
  26. package/dist/index-url.js +2 -1
  27. package/dist/index-url.js.map +1 -1
  28. package/dist/installed-version.d.ts.map +1 -1
  29. package/dist/installed-version.js +14 -7
  30. package/dist/installed-version.js.map +1 -1
  31. package/dist/json-schema.d.ts.map +1 -1
  32. package/dist/json-schema.js +16 -8
  33. package/dist/json-schema.js.map +1 -1
  34. package/dist/registry.d.ts.map +1 -1
  35. package/dist/registry.js +6 -3
  36. package/dist/registry.js.map +1 -1
  37. package/dist/render.d.ts +3 -1
  38. package/dist/render.d.ts.map +1 -1
  39. package/dist/render.js +55 -21
  40. package/dist/render.js.map +1 -1
  41. package/dist/server.d.ts.map +1 -1
  42. package/dist/server.js +4 -2
  43. package/dist/server.js.map +1 -1
  44. package/dist/stdio.js +4 -2
  45. package/dist/stdio.js.map +1 -1
  46. package/dist/tools/describe.d.ts.map +1 -1
  47. package/dist/tools/describe.js +13 -3
  48. package/dist/tools/describe.js.map +1 -1
  49. package/dist/tools/fetch.d.ts.map +1 -1
  50. package/dist/tools/fetch.js +3 -2
  51. package/dist/tools/fetch.js.map +1 -1
  52. package/dist/tools/get-examples.d.ts.map +1 -1
  53. package/dist/tools/get-examples.js +8 -4
  54. package/dist/tools/get-examples.js.map +1 -1
  55. package/dist/tools/get-guide.d.ts.map +1 -1
  56. package/dist/tools/get-guide.js +52 -7
  57. package/dist/tools/get-guide.js.map +1 -1
  58. package/package.json +1 -1
  59. package/server.json +2 -2
  60. package/src/__fixtures__/index.sample.json +261 -0
  61. package/src/__fixtures__/load.ts +1 -0
  62. package/src/descriptions.ts +10 -5
  63. package/src/guides-split.ts +27 -3
  64. package/src/guides.generated.ts +249 -17
  65. package/src/guides.test.ts +41 -7
  66. package/src/index-loader.test.ts +3 -1
  67. package/src/index-loader.ts +15 -5
  68. package/src/index-reader.ts +116 -21
  69. package/src/index-shape.ts +6 -2
  70. package/src/index-types.ts +8 -0
  71. package/src/index-url.ts +3 -1
  72. package/src/installed-version.test.ts +3 -1
  73. package/src/installed-version.ts +21 -7
  74. package/src/json-schema.ts +21 -7
  75. package/src/registry.ts +9 -3
  76. package/src/render.test.ts +153 -1
  77. package/src/render.ts +78 -20
  78. package/src/server.ts +6 -2
  79. package/src/stdio.test.ts +15 -5
  80. package/src/stdio.ts +6 -2
  81. package/src/tools/describe.ts +13 -3
  82. package/src/tools/docs-tools.test.ts +57 -1
  83. package/src/tools/fetch.ts +4 -2
  84. package/src/tools/get-examples.ts +12 -4
  85. package/src/tools/get-guide.ts +54 -7
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @bitbybit-dev/mcp: the Bitbybit CAD MCP server
2
2
 
3
- An [MCP](https://modelcontextprotocol.io) server that documents the [Bitbybit](https://bitbybit.dev) 3D CAD API for AI coding agents: every function, its parameters, defaults, return type and examples, for the exact version your project uses. Bitbybit has 1901 functions across three CAD kernels - more than any model holds in memory - so an agent working from memory invents plausible names that do not exist. An agent with this server looks each one up instead, and writes code that compiles the first time.
3
+ An [MCP](https://modelcontextprotocol.io) server that documents the [Bitbybit](https://bitbybit.dev) 3D CAD API for AI coding agents: every function, its parameters, defaults, return type and examples, for the exact version your project uses. Bitbybit has 2017 functions across three CAD kernels - more than any model holds in memory - so an agent working from memory invents plausible names that do not exist. An agent with this server looks each one up instead, and writes code that compiles the first time.
4
4
 
5
5
  It answers from the API index Bitbybit publishes with every release (`https://git-cdn.bitbybit.dev/v<version>/ai-context/index.json`), never from memory, and never from a moving "latest".
6
6
 
@@ -72,10 +72,10 @@ Indexes are cached in `$XDG_CACHE_HOME/bitbybit-mcp` (or `~/.cache/bitbybit-mcp`
72
72
  | Tool | What it answers |
73
73
  |---|---|
74
74
  | `search_api` | members by keywords, with path, summary, tier and engines |
75
- | `describe` | the full contract of one member by dotted path; an unknown path is reported with the nearest existing ones |
75
+ | `describe` | the full contract of one member by dotted path, naming the types it returns or takes; such a type by its name, field by field; an unknown path is reported with the nearest existing ones |
76
76
  | `list_namespace` | the members one level below a namespace |
77
77
  | `get_examples` | code examples for a member, a namespace or a topic |
78
- | `get_guide` | sections of the public guide on where geometry should run |
78
+ | `get_guide` | sections of the public guides: where geometry should run, how to build, check and export parts with the kernels, how to write design documents, and how to write IFC building models |
79
79
  | `search`, `fetch` | the same lookups in the shape ChatGPT connectors require |
80
80
 
81
81
  Every tool is read-only. Tiers in the answers: `oss` (in the npm packages, MIT), `platform-pro` (only when scripting inside bitbybit.dev), `cloud-pro` (only on [CAD Cloud](https://bitbybit.dev/cad-cloud), with an API key).
@@ -1 +1 @@
1
- {"version":3,"file":"descriptions.d.ts","sourceRoot":"","sources":["../src/descriptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAE7C,eAAO,MAAM,UAAU,uGAAwG,CAAC;AAEhI,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AAEnD,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAIvD,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,MAAM,CAAC,QAAQ,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAAC,CA2C3F,CAAC;AAEF,eAAO,MAAM,mBAAmB,QAIoM,CAAC"}
1
+ {"version":3,"file":"descriptions.d.ts","sourceRoot":"","sources":["../src/descriptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAE7C,eAAO,MAAM,UAAU,uGAAwG,CAAC;AAEhI,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AAEnD,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAIvD,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,MAAM,CAAC,QAAQ,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAAC,CA6C3F,CAAC;AAEF,eAAO,MAAM,mBAAmB,QAO0H,CAAC"}
@@ -15,6 +15,7 @@ export const DESCRIPTIONS = {
15
15
  title: "Describe an API member",
16
16
  description: "The exact contract of one member by dotted path, for example occt.shapes.solid.createBox: signature, every parameter with its type, default and range, " +
17
17
  "the return type, the documentation, examples and where it runs. Answers are for the API version the server holds. " +
18
+ "It also describes the types a member returns or takes by their name, for example Inputs.IFC.SpaceInfoDto, field by field, and a member's answer lists those types. " +
18
19
  "An unknown path is reported as not found together with the nearest existing paths; nothing is guessed.",
19
20
  },
20
21
  list_namespace: {
@@ -28,9 +29,10 @@ export const DESCRIPTIONS = {
28
29
  "Examples are written for the API version the server holds.",
29
30
  },
30
31
  get_guide: {
31
- title: "Read the integration guide",
32
- description: "Sections of the public guide on building with Bitbybit: what runs in the browser, on a server, on a lightweight backend, and what needs CAD Cloud. " +
33
- "Without a topic it lists the sections. Read \"integrate\" before recommending where geometry should run: the npm packages are the default, and CAD Cloud is for algorithms that exist only there or compute the caller cannot provide.",
32
+ title: "Read the guides",
33
+ description: "Sections of the public guides: building with Bitbybit (what runs in the browser, on a server, on a lightweight backend, and what needs CAD Cloud), writing geometry with the kernels (which kernel to use, the order to build a part in, choosing edges, checking and exporting shapes), writing design documents (parametric models as JSON: parameters, sketches, features, references, parts and assemblies), and writing IFC building models (storeys, walls and their joins, doors, windows, slabs, roofs, rooms, properties and quantities). " +
34
+ "Without a topic it lists the sections. Read \"integrate\" before recommending where geometry should run: the npm packages are the default, and CAD Cloud is for algorithms that exist only there or compute the caller cannot provide. " +
35
+ "Read \"geometry\" before writing geometry code, \"design\" before writing a design document, and \"ifc\" before writing an IFC model.",
34
36
  },
35
37
  search: {
36
38
  title: "Search",
@@ -41,8 +43,11 @@ export const DESCRIPTIONS = {
41
43
  description: "Fetches the full documentation of one Bitbybit API member by id (a dotted path returned by search) as text, with its title, url and metadata.",
42
44
  },
43
45
  };
44
- export const SERVER_INSTRUCTIONS = "This is the Bitbybit CAD MCP: it documents the Bitbybit 3D CAD API (OpenCascade, JSCAD and Manifold kernels, with Babylon.js, three.js and PlayCanvas renderers) for one exact version. " +
46
+ export const SERVER_INSTRUCTIONS = "This is the Bitbybit CAD MCP: it documents the Bitbybit 3D CAD API (OpenCascade, JSCAD and Manifold kernels, with Babylon.js, three.js and PlayCanvas renderers, and the IFC library for building models) for one exact version. " +
45
47
  "Always describe a member before using it: names, parameters and defaults come from the index, not from memory. " +
46
48
  "Tiers matter: oss members are in the MIT npm packages and run anywhere; platform-pro members exist only inside bitbybit.dev; cloud-pro members run only on Bitbybit CAD Cloud with an API key. " +
47
- "When asked where geometry should run, read get_guide(\"integrate\") first: the packages alone are the default, and CAD Cloud is the answer only for algorithms that exist only there or for compute the caller cannot provide.";
49
+ "When asked where geometry should run, read get_guide(\"integrate\") first: the packages alone are the default, and CAD Cloud is the answer only for algorithms that exist only there or for compute the caller cannot provide. " +
50
+ "Before writing geometry code with the occt, manifold or jscad kernels, read get_guide(\"geometry\"), then get_guide(\"part-order\") and get_guide(\"geometry-mistakes\"). " +
51
+ "Before writing a design document, a parametric model as JSON that occt.design builds, read get_guide(\"design\") and the sections it lists. " +
52
+ "Before writing an IFC building model with the ifc namespace, read get_guide(\"ifc\"), then get_guide(\"ifc-order\") and get_guide(\"ifc-mistakes\").";
48
53
  //# sourceMappingURL=descriptions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"descriptions.js","sourceRoot":"","sources":["../src/descriptions.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,YAAY,EAAE,UAAU,EAAE,gBAAgB,EAAE,cAAc,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,CAAU,CAAC;AAIhI,MAAM,CAAC,MAAM,YAAY,GAAmC;IACxD,GAAG,EAAE,yFAAyF;IAC9F,cAAc,EAAE,iEAAiE;IACjF,WAAW,EAAE,kEAAkE;CAClF,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAuE;IAC5F,UAAU,EAAE;QACR,KAAK,EAAE,yBAAyB;QAChC,WAAW,EACP,gIAAgI;YAChI,sIAAsI;YACtI,oGAAoG;KAC3G;IACD,QAAQ,EAAE;QACN,KAAK,EAAE,wBAAwB;QAC/B,WAAW,EACP,yJAAyJ;YACzJ,oHAAoH;YACpH,wGAAwG;KAC/G;IACD,cAAc,EAAE;QACZ,KAAK,EAAE,kBAAkB;QACzB,WAAW,EACP,mJAAmJ;YACnJ,8DAA8D;KACrE;IACD,YAAY,EAAE;QACV,KAA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iBAAiB;QACxB,WAAW,EACP,qhBAAqhB;YACrhB,yOAAyO;YACzO,uIAAuI;KAC9I;IACD,MAAM,EAAE;QACJ,KAAK,EAAE,QAAQ;QACf,WAAW,EACP,gJAAgJ;KACvJ;IACD,KAAK,EAAE;QACH,KAAK,EAAE,OAAO;QACd,WAAW,EACP,+IAA+I;KACtJ;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAC5B,mOAAmO;IACnO,iHAAiH;IACjH,iMAAiM;IACjM,iOAAiO;IACjO,4KAA4K;IAC5K,8IAA8I;IAC9I,sJAAsJ,CAAC"}
@@ -3,7 +3,13 @@ export interface GuideSection {
3
3
  title: string;
4
4
  level: 2 | 3;
5
5
  body: string;
6
+ page?: string;
7
+ }
8
+ export interface GuidePage {
9
+ url: string;
10
+ markdown: string;
6
11
  }
7
12
  export declare function slugify(title: string): string;
8
13
  export declare function splitGuides(markdown: string): GuideSection[];
14
+ export declare function splitGuidePages(pages: readonly GuidePage[]): GuideSection[];
9
15
  //# sourceMappingURL=guides-split.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"guides-split.d.ts","sourceRoot":"","sources":["../src/guides-split.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,CAAC,GAAG,CAAC,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CAChB;AAKD,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAK7C;AAED,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,YAAY,EAAE,CA4B5D"}
1
+ {"version":3,"file":"guides-split.d.ts","sourceRoot":"","sources":["../src/guides-split.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,CAAC,GAAG,CAAC,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,SAAS;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;CACpB;AAKD,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAK7C;AAED,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,YAAY,EAAE,CAkC5D;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,SAAS,SAAS,EAAE,GAAG,YAAY,EAAE,CAU3E"}
@@ -13,8 +13,9 @@ export function splitGuides(markdown) {
13
13
  const close = (minLevel) => {
14
14
  while (open.length > 0) {
15
15
  const last = open[open.length - 1];
16
- if (!last || last.section.level < minLevel)
16
+ if (!last || last.section.level < minLevel) {
17
17
  break;
18
+ }
18
19
  last.section.body = last.lines.join("\n").trim();
19
20
  open.pop();
20
21
  }
@@ -25,17 +26,30 @@ export function splitGuides(markdown) {
25
26
  const level = heading[1] === "##" ? 2 : 3;
26
27
  const title = (heading[2] ?? "").trim();
27
28
  close(level);
28
- for (const entry of open)
29
+ for (const entry of open) {
29
30
  entry.lines.push(line);
31
+ }
30
32
  const section = { id: slugify(title), title, level, body: "" };
31
33
  sections.push(section);
32
34
  open.push({ section, lines: [] });
33
35
  continue;
34
36
  }
35
- for (const entry of open)
37
+ for (const entry of open) {
36
38
  entry.lines.push(line);
39
+ }
37
40
  }
38
41
  close(2);
39
42
  return sections;
40
43
  }
44
+ export function splitGuidePages(pages) {
45
+ const sections = pages.flatMap((page) => splitGuides(page.markdown).map((section) => ({ ...section, page: page.url })));
46
+ const seen = new Set();
47
+ for (const section of sections) {
48
+ if (seen.has(section.id)) {
49
+ throw new Error(`Two guide sections share the id "${section.id}"; retitle one of them so every section has its own id`);
50
+ }
51
+ seen.add(section.id);
52
+ }
53
+ return sections;
54
+ }
41
55
  //# sourceMappingURL=guides-split.js.map
@@ -1 +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,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;YAClC,SAAS;QACb,CAAC;QACD,KAAK,MAAM,KAAK,IAAI,IAAI,EAAE,CAAC;YACvB,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC3B,CAAC;IACL,CAAC;IACD,KAAK,CAAC,CAAC,CAAC,CAAC;IACT,OAAO,QAAQ,CAAC;AACpB,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,KAA2B;IACvD,MAAM,QAAQ,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC;IACxH,MAAM,IAAI,GAAG,IAAI,GAAG,EAAU,CAAC;IAC/B,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;QAC7B,IAAI,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC;YACvB,MAAM,IAAI,KAAK,CAAC,oCAAoC,OAAO,CAAC,EAAE,wDAAwD,CAAC,CAAC;QAC5H,CAAC;QACD,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IACzB,CAAC;IACD,OAAO,QAAQ,CAAC;AACpB,CAAC"}
@@ -1,9 +1,10 @@
1
1
  import type { GuideSection } from "./guides-split.js";
2
- /** Where the guide is published; every section links back to it. */
2
+ /** Where the first guide is published; every section links back to its own page. */
3
3
  export declare const GUIDE_PAGE_URL = "https://learn.bitbybit.dev/learn/using-ai-with-bitbybit/agentic-cad";
4
4
  /**
5
- * The sections of the public guide, generated by scripts/sync-guides.mjs from
6
- * docs/learn/using-ai-with-bitbybit/agentic-cad.md. Do not edit: run `npm run sync:guides`.
5
+ * The sections of the public guides, generated by scripts/sync-guides.mjs from
6
+ * docs/learn/using-ai-with-bitbybit/agentic-cad.md, docs/learn/using-ai-with-bitbybit/cad-geometry.md, docs/learn/using-ai-with-bitbybit/design-documents.md, docs/learn/using-ai-with-bitbybit/ifc-models.md.
7
+ * Do not edit: run `npm run sync:guides`.
7
8
  */
8
9
  export declare const GUIDES: readonly GuideSection[];
9
10
  //# sourceMappingURL=guides.generated.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"guides.generated.d.ts","sourceRoot":"","sources":["../src/guides.generated.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,oEAAoE;AACpE,eAAO,MAAM,cAAc,wEAAwE,CAAC;AAEpG;;;GAGG;AACH,eAAO,MAAM,MAAM,EAAE,SAAS,YAAY,EAqFzC,CAAC"}
1
+ {"version":3,"file":"guides.generated.d.ts","sourceRoot":"","sources":["../src/guides.generated.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,oFAAoF;AACpF,eAAO,MAAM,cAAc,wEAAwE,CAAC;AAEpG;;;;GAIG;AACH,eAAO,MAAM,MAAM,EAAE,SAAS,YAAY,EA4TzC,CAAC"}