Bitbybit CAD MCP
Bitbybit 3D parametric CAD API, version-exact, for coding agents: search, describe, examples, guide
我該用這個嗎
品質與安全性
發現項目(2)
- LOW在 get_examples 中
- LOW在 fetch 中
根據工具定義與協定合規性的自動化分析。
上下文成本
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"cad": {
"command": "npx",
"args": [
"@bitbybit-dev/mcp"
]
}
}
}可執行的套件
1.8.1stdio遠端端點
https://mcp.bitbybit.dev/mcpstreamable-http它能做什麼
工具清單
工具(7)
🟢search_api(query, engine, limit, version)
Find Bitbybit API members (methods, namespaces, cloud operations) by keywords, for example "box solid" or "fillet edges". Returns dotted paths with a one-line summary, the tier (oss on npm, platform-pro only at bitbybit.dev, cloud-pro only on CAD Cloud) and the engines each is published for. Call describe with a path before writing code that uses it.
輸入結構描述
{
"type": "object",
"properties": {
"query": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Keywords, a phrase, or a partial dotted path"
},
"engine": {
"description": "Only members published for this engine, plus the cloud operations, which run on CAD Cloud rather than in an engine; omit for every engine",
"type": "string",
"enum": [
"babylonjs",
"threejs",
"playcanvas"
]
},
"limit": {
"description": "How many results, 10 by default",
"type": "integer",
"minimum": 1,
"maximum": 50
},
"version": {
"description": "The API version to search; omit for the version the server holds",
"type": "string"
}
},
"required": [
"query"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢describe(path, version)
The exact contract of one member by dotted path, for example occt.shapes.solid.createBox: signature, every parameter with its type, default and range, the return type, the documentation, examples and where it runs. Answers are for the API version the server holds. 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. An unknown path is reported as not found together with the nearest existing paths; nothing is guessed.
輸入結構描述
{
"type": "object",
"properties": {
"path": {
"type": "string",
"minLength": 1,
"maxLength": 256,
"description": "The dotted path of the member, for example occt.shapes.solid.createBox, or the name of a type a member returns or takes, for example Inputs.IFC.SpaceInfoDto"
},
"version": {
"description": "The API version to describe; omit for the version the server holds",
"type": "string"
}
},
"required": [
"path"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢list_namespace(path, version)
The members one level below a namespace path, for example occt.shapes, each with its kind and summary. Without a path, the top-level namespaces and the methods of the bitbybit object itself, such as setConventions. Use it to discover what exists before searching for details.
輸入結構描述
{
"type": "object",
"properties": {
"path": {
"description": "A namespace path such as occt or occt.shapes; omit for the top level",
"type": "string",
"maxLength": 256
},
"version": {
"description": "The API version to list; omit for the version the server holds",
"type": "string"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢get_examples(path, topic, engine, limit, version)
Working TypeScript examples for a member path, for a namespace, or for a topic given as keywords. Each example names the member it belongs to and links its reference page. Examples are written for the API version the server holds.
輸入結構描述
{
"type": "object",
"properties": {
"path": {
"description": "A member or namespace path, for example occt.shapes.solid.createBox or occt.fillets",
"type": "string",
"maxLength": 256
},
"topic": {
"description": "Keywords to find examples by, when no path is known",
"type": "string",
"maxLength": 200
},
"engine": {
"description": "Prefer members published for this engine when searching by topic",
"type": "string",
"enum": [
"babylonjs",
"threejs",
"playcanvas"
]
},
"limit": {
"description": "How many examples, 5 by default",
"type": "integer",
"minimum": 1,
"maximum": 20
},
"version": {
"description": "The API version; omit for the version the server holds",
"type": "string"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢get_guide(topic)
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). 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. Read "geometry" before writing geometry code, "coordinates" before setting the library up or writing files, "design" before writing a design document, and "ifc" before writing an IFC model.
輸入結構描述
{
"type": "object",
"properties": {
"topic": {
"description": "A section id or a short name such as integrate, browser, backend, server-side, pro, start, geometry, part-order, geometry-mistakes, coordinates, design, references, assembly, ifc, ifc-order, ifc-mistakes; omit to list the sections",
"type": "string",
"maxLength": 128
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢search(query)
Searches the Bitbybit API documentation and returns a list of results with id, title and url. Each id is a dotted API path that fetch accepts.
輸入結構描述
{
"type": "object",
"properties": {
"query": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Search terms"
}
},
"required": [
"query"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢fetch(id)
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.
輸入結構描述
{
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 256,
"description": "A dotted API path returned by search"
}
},
"required": [
"id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}建議的提示詞
get_examplessearch_apisearch_apiget_exampleslist_namespace社群
證據