@ohmframe/mcp-server 0.0.0-stage → 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.
@@ -0,0 +1,32 @@
1
+ {
2
+ "$schema": "https://ai.ohmframe.com/api/schemas/feature-set.v0.json",
3
+ "schema": "ohmframe.feature-set/v0",
4
+ "units": "mm",
5
+ "source": {
6
+ "generator": "ohmframe-step-features",
7
+ "generatorVersion": "0.1.0",
8
+ "sourceSha256": "3f6c1b0f7e2a9d4c8b5e6f7a1d2c3b4a5e6f7d8c9b0a1f2e3d4c5b6a7f8e9d0c",
9
+ "createdAt": "2026-11-21T12:00:00Z"
10
+ },
11
+ "part": {
12
+ "name": "mounting-bracket-revB",
13
+ "bbox": { "x": 120, "y": 40, "z": 18 },
14
+ "volume": 38250.5,
15
+ "surfaceArea": 14820.2,
16
+ "material": "aluminium 6061-T6",
17
+ "processHint": "cnc_machining",
18
+ "bodyCount": 1
19
+ },
20
+ "thickness": { "min": 1.2, "max": 18, "mean": 6.4 },
21
+ "setups": { "count": 2, "directions": [[0, 0, 1], [0, 0, -1]] },
22
+ "features": [
23
+ { "id": "h1", "type": "hole", "params": { "diameter": 6.6, "depth": 8, "through": true }, "faceIds": ["f12"], "accessDirections": [[0, 0, 1]] },
24
+ { "id": "h2", "type": "hole", "params": { "diameter": 6.6, "depth": 8, "through": true }, "faceIds": ["f13"], "accessDirections": [[0, 0, 1]] },
25
+ { "id": "h3", "type": "hole", "params": { "diameter": 3, "depth": 24, "through": false }, "faceIds": ["f40"], "accessDirections": [[1, 0, 0]] },
26
+ { "id": "p1", "type": "pocket", "params": { "length": 60, "width": 20, "depth": 12, "cornerRadius": 0.5 }, "faceIds": ["f20", "f21", "f22", "f23", "f24"], "accessDirections": [[0, 0, 1]] },
27
+ { "id": "w1", "type": "wall", "params": { "thickness": 1.2, "height": 12 }, "faceIds": ["f21", "f30"] },
28
+ { "id": "fl1", "type": "fillet", "params": { "radius": 2 }, "faceIds": ["f50"] },
29
+ { "id": "t1", "type": "thread", "params": { "nominal": "M4", "pitch": 0.7, "length": 10, "internal": true }, "faceIds": ["f41"] }
30
+ ],
31
+ "warnings": []
32
+ }
@@ -0,0 +1,332 @@
1
+ {
2
+ "$id": "https://ai.ohmframe.com/api/schemas/feature-set.v0.json",
3
+ "title": "Ohmframe feature set v0",
4
+ "description": "Compact geometry summary extracted locally from CAD. Contains dimensions, counts, feature parameters and opaque face ids only; never raw CAD, meshes or B-rep.",
5
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
6
+ "type": "object",
7
+ "properties": {
8
+ "$schema": {
9
+ "type": "string"
10
+ },
11
+ "schema": {
12
+ "type": "string",
13
+ "const": "ohmframe.feature-set/v0"
14
+ },
15
+ "units": {
16
+ "type": "string",
17
+ "enum": [
18
+ "mm",
19
+ "in"
20
+ ]
21
+ },
22
+ "source": {
23
+ "type": "object",
24
+ "properties": {
25
+ "generator": {
26
+ "type": "string",
27
+ "minLength": 1,
28
+ "maxLength": 100
29
+ },
30
+ "generatorVersion": {
31
+ "type": "string",
32
+ "minLength": 1,
33
+ "maxLength": 50
34
+ },
35
+ "sourceSha256": {
36
+ "type": "string",
37
+ "pattern": "^[0-9a-f]{64}$"
38
+ },
39
+ "createdAt": {
40
+ "type": "string",
41
+ "format": "date-time",
42
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
43
+ }
44
+ },
45
+ "required": [
46
+ "generator",
47
+ "generatorVersion",
48
+ "createdAt"
49
+ ],
50
+ "additionalProperties": false
51
+ },
52
+ "part": {
53
+ "type": "object",
54
+ "properties": {
55
+ "name": {
56
+ "type": "string",
57
+ "maxLength": 200
58
+ },
59
+ "bbox": {
60
+ "type": "object",
61
+ "properties": {
62
+ "x": {
63
+ "type": "number",
64
+ "minimum": 0
65
+ },
66
+ "y": {
67
+ "type": "number",
68
+ "minimum": 0
69
+ },
70
+ "z": {
71
+ "type": "number",
72
+ "minimum": 0
73
+ }
74
+ },
75
+ "required": [
76
+ "x",
77
+ "y",
78
+ "z"
79
+ ],
80
+ "additionalProperties": false
81
+ },
82
+ "volume": {
83
+ "type": "number",
84
+ "minimum": 0
85
+ },
86
+ "surfaceArea": {
87
+ "type": "number",
88
+ "minimum": 0
89
+ },
90
+ "material": {
91
+ "type": "string",
92
+ "maxLength": 100
93
+ },
94
+ "processHint": {
95
+ "type": "string",
96
+ "enum": [
97
+ "cnc_machining",
98
+ "cnc_turning",
99
+ "sheet_metal",
100
+ "injection_molding",
101
+ "die_casting",
102
+ "3d_printing_fdm",
103
+ "3d_printing_sla",
104
+ "weldment",
105
+ "pcba"
106
+ ]
107
+ },
108
+ "bodyCount": {
109
+ "default": 1,
110
+ "type": "integer",
111
+ "exclusiveMinimum": 0,
112
+ "maximum": 9007199254740991
113
+ }
114
+ },
115
+ "required": [
116
+ "bbox",
117
+ "volume",
118
+ "surfaceArea"
119
+ ],
120
+ "additionalProperties": false
121
+ },
122
+ "thickness": {
123
+ "type": "object",
124
+ "properties": {
125
+ "min": {
126
+ "type": "number",
127
+ "exclusiveMinimum": 0
128
+ },
129
+ "max": {
130
+ "type": "number",
131
+ "exclusiveMinimum": 0
132
+ },
133
+ "mean": {
134
+ "type": "number",
135
+ "exclusiveMinimum": 0
136
+ }
137
+ },
138
+ "required": [
139
+ "min",
140
+ "max"
141
+ ],
142
+ "additionalProperties": false
143
+ },
144
+ "sheetMetal": {
145
+ "type": "object",
146
+ "properties": {
147
+ "thickness": {
148
+ "type": "number",
149
+ "exclusiveMinimum": 0
150
+ },
151
+ "kFactor": {
152
+ "type": "number",
153
+ "minimum": 0,
154
+ "maximum": 1
155
+ },
156
+ "flatPattern": {
157
+ "type": "object",
158
+ "properties": {
159
+ "length": {
160
+ "type": "number",
161
+ "exclusiveMinimum": 0
162
+ },
163
+ "width": {
164
+ "type": "number",
165
+ "exclusiveMinimum": 0
166
+ }
167
+ },
168
+ "required": [
169
+ "length",
170
+ "width"
171
+ ],
172
+ "additionalProperties": false
173
+ }
174
+ },
175
+ "required": [
176
+ "thickness"
177
+ ],
178
+ "additionalProperties": false
179
+ },
180
+ "setups": {
181
+ "type": "object",
182
+ "properties": {
183
+ "count": {
184
+ "type": "integer",
185
+ "minimum": 0,
186
+ "maximum": 9007199254740991
187
+ },
188
+ "directions": {
189
+ "maxItems": 26,
190
+ "type": "array",
191
+ "items": {
192
+ "type": "array",
193
+ "prefixItems": [
194
+ {
195
+ "type": "number"
196
+ },
197
+ {
198
+ "type": "number"
199
+ },
200
+ {
201
+ "type": "number"
202
+ }
203
+ ],
204
+ "items": false,
205
+ "minItems": 3,
206
+ "maxItems": 3
207
+ }
208
+ }
209
+ },
210
+ "required": [
211
+ "count",
212
+ "directions"
213
+ ],
214
+ "additionalProperties": false
215
+ },
216
+ "features": {
217
+ "maxItems": 10000,
218
+ "type": "array",
219
+ "items": {
220
+ "type": "object",
221
+ "properties": {
222
+ "id": {
223
+ "type": "string",
224
+ "minLength": 1,
225
+ "maxLength": 64,
226
+ "pattern": "^[A-Za-z0-9_.:-]+$"
227
+ },
228
+ "type": {
229
+ "type": "string",
230
+ "enum": [
231
+ "hole",
232
+ "pocket",
233
+ "slot",
234
+ "step",
235
+ "boss",
236
+ "rib",
237
+ "wall",
238
+ "floor",
239
+ "fillet",
240
+ "chamfer",
241
+ "thread",
242
+ "bend",
243
+ "flange",
244
+ "cutout",
245
+ "draft_face",
246
+ "undercut",
247
+ "turned_diameter",
248
+ "groove",
249
+ "other"
250
+ ]
251
+ },
252
+ "params": {
253
+ "type": "object",
254
+ "propertyNames": {
255
+ "type": "string",
256
+ "maxLength": 64
257
+ },
258
+ "additionalProperties": {
259
+ "anyOf": [
260
+ {
261
+ "type": "number"
262
+ },
263
+ {
264
+ "type": "string",
265
+ "maxLength": 200
266
+ },
267
+ {
268
+ "type": "boolean"
269
+ }
270
+ ]
271
+ }
272
+ },
273
+ "faceIds": {
274
+ "default": [],
275
+ "maxItems": 5000,
276
+ "type": "array",
277
+ "items": {
278
+ "type": "string",
279
+ "minLength": 1,
280
+ "maxLength": 64,
281
+ "pattern": "^[A-Za-z0-9_.:-]+$"
282
+ }
283
+ },
284
+ "accessDirections": {
285
+ "maxItems": 26,
286
+ "type": "array",
287
+ "items": {
288
+ "type": "array",
289
+ "prefixItems": [
290
+ {
291
+ "type": "number"
292
+ },
293
+ {
294
+ "type": "number"
295
+ },
296
+ {
297
+ "type": "number"
298
+ }
299
+ ],
300
+ "items": false,
301
+ "minItems": 3,
302
+ "maxItems": 3
303
+ }
304
+ }
305
+ },
306
+ "required": [
307
+ "id",
308
+ "type",
309
+ "params"
310
+ ],
311
+ "additionalProperties": false
312
+ }
313
+ },
314
+ "warnings": {
315
+ "default": [],
316
+ "maxItems": 100,
317
+ "type": "array",
318
+ "items": {
319
+ "type": "string",
320
+ "maxLength": 500
321
+ }
322
+ }
323
+ },
324
+ "required": [
325
+ "schema",
326
+ "units",
327
+ "source",
328
+ "part",
329
+ "features"
330
+ ],
331
+ "additionalProperties": false
332
+ }
@@ -0,0 +1,63 @@
1
+ ---
2
+ name: ohmframe-release-brain
3
+ description: Design-for-manufacturing review, should-cost and tolerance checks for a CAD part with the Ohmframe MCP tools. Use when the user asks whether a part can be made, what it will cost, why a design is hard to machine, mould or bend, or to review a STEP file before release.
4
+ ---
5
+
6
+ # Ohmframe Release Brain
7
+
8
+ Review a part before release: manufacturability (DFM), should-cost, tolerance stack-ups and GD&T. The tools come from the `ohmframe` MCP server (`@ohmframe/mcp-server`).
9
+
10
+ ## Rule that never bends
11
+
12
+ **Never send the CAD file itself.** Do not read a STEP, IGES, STL or mesh file and paste its contents into a tool call, and do not upload images of the model unless the user asks for it. Extract features locally and send the feature JSON only. The workspace may enforce this (`egress_policy` errors); respect it rather than working around it.
13
+
14
+ ## Workflow
15
+
16
+ 1. **Find the file.** Ask for the STEP file path if the user has not given one. Ask for the process (CNC machining, sheet metal, injection moulding, die casting, 3D printing) and the material if they matter and are unknown.
17
+
18
+ 2. **Extract features locally.** Run, in the user's shell:
19
+
20
+ ```bash
21
+ uvx ohmframe-step-features part.step --process cnc_machining --material "aluminium 6061-T6" -o part.features.json
22
+ ```
23
+
24
+ - It runs offline and prints a one-line summary to stderr (feature count and size).
25
+ - Size must stay under 256 KB; add `--compact` if it is close.
26
+ - If the command fails with exit code 1, the STEP file could not be read. Tell the user; do not guess features.
27
+
28
+ 3. **Check manufacturability.** Read `part.features.json` and call `dfm_analyze` with `{ "featureSet": <the JSON>, "process": "<process>" }`. Cost: 3 credits; an unchanged re-check within 30 days is free.
29
+
30
+ 4. **Report the result** in this order:
31
+ - **Critical and major failures first**, each with the rule, the measured value, the expected value and the fix. Name the features (`p1`, `h3`) and offer to point at faces (`faceIds`).
32
+ - Warnings, briefly.
33
+ - Rules with status `needs_review`: say plainly that the tool cannot decide them from geometry. Do not present them as passed.
34
+ - The `notVisible` list (tolerances, finish, material, drawing notes) as things a person must still check.
35
+ - `creditsRemaining`.
36
+
37
+ 5. **Should-cost (optional).** If the user wants a price, call `cost_estimate` with `process`, `quantity`, `material.type`, and geometry from the feature set: `boundingBox.dimensions` = `[bbox.x, bbox.y, bbox.z]`, `volume` and `surfaceArea` from `part`. For sheet metal, add `flatPattern` if the user knows the blank size. Say that the estimate is indicative, not a quote.
38
+
39
+ 6. **Fix loop.** After the user changes the model, re-run step 2 and step 3. Compare with the previous result: which failures are gone and which remain.
40
+
41
+ ## Other tools
42
+
43
+ | Tool | When |
44
+ |---|---|
45
+ | `tolerance_stackup` | The user gives a chain of dimensions with ± tolerances |
46
+ | `gdt_check` | The user asks how to tolerance or datum a feature |
47
+ | `material_select` | The user needs candidate materials for stated requirements |
48
+ | `standards_lookup` | The user asks which standards or certifications apply |
49
+ | `fmea_generate` | The user asks for a design or process FMEA draft |
50
+
51
+ ## Errors
52
+
53
+ | Error | Do |
54
+ |---|---|
55
+ | `missing_api_key`, `unauthorized` | Tell the user to set `OHMFRAME_API_KEY` (Pro MCP, Team or Enterprise plan). Do not retry |
56
+ | `credits_exhausted` | Stop. Tell the user how many credits were needed and are left |
57
+ | `insufficient_scope` | The key lacks the tool's scope; the user needs a key with it |
58
+ | `egress_policy` | You sent something the workspace does not allow. Send feature JSON only |
59
+ | `invalid_input` | Fix the input (see `problems`); for feature sets, re-run the extractor rather than editing JSON by hand |
60
+ | `rate_limited` | Wait `retryAfterSeconds`, retry once |
61
+ | `tool_unavailable` | Skip the tool and say so |
62
+
63
+ See `examples/` for a full exchange.
@@ -0,0 +1,32 @@
1
+ {
2
+ "$schema": "https://ai.ohmframe.com/api/schemas/feature-set.v0.json",
3
+ "schema": "ohmframe.feature-set/v0",
4
+ "units": "mm",
5
+ "source": {
6
+ "generator": "ohmframe-step-features",
7
+ "generatorVersion": "0.1.0",
8
+ "sourceSha256": "3f6c1b0f7e2a9d4c8b5e6f7a1d2c3b4a5e6f7d8c9b0a1f2e3d4c5b6a7f8e9d0c",
9
+ "createdAt": "2026-11-21T12:00:00Z"
10
+ },
11
+ "part": {
12
+ "name": "mounting-bracket-revB",
13
+ "bbox": { "x": 120, "y": 40, "z": 18 },
14
+ "volume": 38250.5,
15
+ "surfaceArea": 14820.2,
16
+ "material": "aluminium 6061-T6",
17
+ "processHint": "cnc_machining",
18
+ "bodyCount": 1
19
+ },
20
+ "thickness": { "min": 1.2, "max": 18, "mean": 6.4 },
21
+ "setups": { "count": 2, "directions": [[0, 0, 1], [0, 0, -1]] },
22
+ "features": [
23
+ { "id": "h1", "type": "hole", "params": { "diameter": 6.6, "depth": 8, "through": true }, "faceIds": ["f12"], "accessDirections": [[0, 0, 1]] },
24
+ { "id": "h2", "type": "hole", "params": { "diameter": 6.6, "depth": 8, "through": true }, "faceIds": ["f13"], "accessDirections": [[0, 0, 1]] },
25
+ { "id": "h3", "type": "hole", "params": { "diameter": 3, "depth": 24, "through": false }, "faceIds": ["f40"], "accessDirections": [[1, 0, 0]] },
26
+ { "id": "p1", "type": "pocket", "params": { "length": 60, "width": 20, "depth": 12, "cornerRadius": 0.5 }, "faceIds": ["f20", "f21", "f22", "f23", "f24"], "accessDirections": [[0, 0, 1]] },
27
+ { "id": "w1", "type": "wall", "params": { "thickness": 1.2, "height": 12 }, "faceIds": ["f21", "f30"] },
28
+ { "id": "fl1", "type": "fillet", "params": { "radius": 2 }, "faceIds": ["f50"] },
29
+ { "id": "t1", "type": "thread", "params": { "nominal": "M4", "pitch": 0.7, "length": 10, "internal": true }, "faceIds": ["f41"] }
30
+ ],
31
+ "warnings": []
32
+ }
@@ -0,0 +1,25 @@
1
+ # Example: DFM review of a machined bracket
2
+
3
+ **User:** Can this bracket be machined cheaply? `bracket-revB.step`, 6061 aluminium, 50 pieces.
4
+
5
+ **Agent runs locally:**
6
+
7
+ ```bash
8
+ uvx ohmframe-step-features bracket-revB.step --process cnc_machining --material "aluminium 6061-T6" -o bracket.features.json
9
+ # feature set: 7 features, 2950 bytes
10
+ ```
11
+
12
+ **Agent calls** `dfm_analyze` with `{ "featureSet": <bracket.features.json>, "process": "cnc_machining" }` (see `bracket.feature-set.json`).
13
+
14
+ **Agent reports:**
15
+
16
+ > Two critical issues, one major issue and one warning (3 credits used, 494 left).
17
+ >
18
+ > 1. **Critical: pocket p1 has 0.5 mm internal corners** (CNC-001 needs ≥ 3 mm). A 1 mm cutter at 12 mm depth is slow and fragile. Fix: raise the corner radius to at least 3 mm.
19
+ > 2. **Critical: wall w1 is 1.2 mm** (CNC-003 needs ≥ 1.5 mm for metals). It will chatter and deflect. Fix: thicken it to 2 mm, or support it during machining.
20
+ > 3. **Major: p1's corner radius is 0.04 of its depth** (CNC-014 recommends ≥ 1/3, about 4 mm here). Fixing item 1 with a 4 mm radius clears this too.
21
+ > 4. Warning: **hole h3 is 8× its diameter** (recommended ≤ 5×, limit 10×). Drillable, but peck drilling adds cycle time.
22
+ >
23
+ > Not decided from geometry: surface finish, undercut access, text size, edge chamfers, T-slot access, datum surface. Tolerances, finish and material still need a person.
24
+ >
25
+ > Want a should-cost estimate for 50 pieces?
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "ohmframe-release-brain",
3
+ "version": "0.1.0",
4
+ "files": [
5
+ {
6
+ "path": "SKILL.md",
7
+ "sha256": "acb5e2acffaf0e4e4df8207acf66ba0d01c4e1e46b27c758c7018d3750405b70"
8
+ },
9
+ {
10
+ "path": "examples/bracket.feature-set.json",
11
+ "sha256": "ef5c908bf02819db26e015c1159d326b7073854b79a4165f9d954b425df71f1a"
12
+ },
13
+ {
14
+ "path": "examples/dfm-review.md",
15
+ "sha256": "606af0037b70fb37c3f08b6d8ae3f91bbe8084cada370cb2efef019e282a6bfc"
16
+ }
17
+ ]
18
+ }