onto-mcp 0.4.2 → 0.4.3

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 (2) hide show
  1. package/dist/mcp/server.js +7 -27
  2. package/package.json +1 -1
@@ -326,37 +326,17 @@ const RECONSTRUCT_SESSION_INPUT_SCHEMA = {
326
326
  },
327
327
  },
328
328
  };
329
+ // NOTE: top-level `allOf`/`oneOf`/`anyOf` is rejected by the Anthropic tool API
330
+ // ("input_schema does not support oneOf/allOf/anyOf at the top level"), which 400s
331
+ // the whole request when onto is enabled. Per-`directiveKind` required-field rules
332
+ // are enforced at runtime by OntoValidateReconstructDirectiveToolInputSchema
333
+ // (a Zod discriminatedUnion) in the handler, so they are intentionally not encoded
334
+ // here. Keep this schema a flat object: common required fields plus optional
335
+ // per-kind properties documented in their descriptions.
329
336
  const VALIDATE_RECONSTRUCT_DIRECTIVE_INPUT_SCHEMA = {
330
337
  type: "object",
331
338
  additionalProperties: false,
332
339
  required: ["directiveKind", "sourceObservationsPath"],
333
- allOf: [
334
- {
335
- if: {
336
- properties: { directiveKind: { const: "source_observation" } },
337
- required: ["directiveKind"],
338
- },
339
- then: { required: ["directivePath"] },
340
- },
341
- {
342
- if: {
343
- properties: { directiveKind: { const: "candidate_disposition" } },
344
- required: ["directiveKind"],
345
- },
346
- then: {
347
- required: ["candidateInventoryPath", "candidateDispositionPath"],
348
- },
349
- },
350
- {
351
- if: {
352
- properties: { directiveKind: { const: "ontology_seed" } },
353
- required: ["directiveKind"],
354
- },
355
- then: {
356
- required: ["ontologySeedPath", "candidateDispositionPath"],
357
- },
358
- },
359
- ],
360
340
  properties: {
361
341
  directiveKind: {
362
342
  type: "string",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "onto-mcp",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "MCP-native ontology review runtime with context-isolated lenses and controlled deliberation",
5
5
  "homepage": "https://github.com/kangminlee-maker/onto-mcp#readme",
6
6
  "bugs": {