onshape for VS Code
io.github.gpambrozio/onshape
Drive Onshape CAD from an assistant: documents, sketches, solid features, assemblies and exports.
client:VS Code
transport:stdio
runtime:npm
Install onshape in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "onshape-access-key",
"description": "ONSHAPE_ACCESS_KEY",
"password": true
},
{
"type": "promptString",
"id": "onshape-secret-key",
"description": "ONSHAPE_SECRET_KEY",
"password": true
},
{
"type": "promptString",
"id": "onshape-mcp-output-dir",
"description": "ONSHAPE_MCP_OUTPUT_DIR",
"password": true
}
],
"servers": {
"onshape": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@gpambrozio/onshape-mcp"
],
"env": {
"ONSHAPE_ACCESS_KEY": "${input:onshape-access-key}",
"ONSHAPE_SECRET_KEY": "${input:onshape-secret-key}",
"ONSHAPE_MCP_OUTPUT_DIR": "${input:onshape-mcp-output-dir}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs