@oneentry/mcp-platform-server 0.1.3 → 0.1.5

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 (74) hide show
  1. package/dist/api/audit.d.ts.map +1 -0
  2. package/dist/api/audit.js.map +1 -0
  3. package/dist/api/auth.d.ts.map +1 -0
  4. package/dist/api/auth.js.map +1 -0
  5. package/dist/api/build-catalog.d.ts +1 -0
  6. package/dist/api/build-catalog.js +133 -20
  7. package/dist/api/catalog.d.ts +6 -1
  8. package/dist/api/catalog.d.ts.map +1 -0
  9. package/dist/api/catalog.js +53 -17
  10. package/dist/api/catalog.js.map +1 -0
  11. package/dist/api/client.d.ts +1 -0
  12. package/dist/api/client.d.ts.map +1 -0
  13. package/dist/api/client.js +9 -0
  14. package/dist/api/client.js.map +1 -0
  15. package/dist/api/normalize-schema.js +6 -1
  16. package/dist/api/operation-notes.d.ts +10 -0
  17. package/dist/api/operation-notes.js +146 -0
  18. package/dist/api/policy.d.ts.map +1 -0
  19. package/dist/api/policy.js.map +1 -0
  20. package/dist/api/shape.d.ts.map +1 -0
  21. package/dist/api/shape.js.map +1 -0
  22. package/dist/api/swagger-source.d.ts +13 -1
  23. package/dist/api/swagger-source.js +93 -32
  24. package/dist/api/types.d.ts +16 -0
  25. package/dist/api/types.d.ts.map +1 -0
  26. package/dist/api/types.js.map +1 -0
  27. package/dist/bin/cli.d.ts.map +1 -0
  28. package/dist/bin/cli.js.map +1 -0
  29. package/dist/config/config.d.ts.map +1 -0
  30. package/dist/config/config.js.map +1 -0
  31. package/dist/index.d.ts +2 -1
  32. package/dist/index.d.ts.map +1 -0
  33. package/dist/index.js +1 -1
  34. package/dist/index.js.map +1 -0
  35. package/dist/knowledge/chunk.d.ts.map +1 -0
  36. package/dist/knowledge/chunk.js.map +1 -0
  37. package/dist/knowledge/loader.d.ts.map +1 -0
  38. package/dist/knowledge/loader.js.map +1 -0
  39. package/dist/knowledge/ru-en-terms.d.ts +1 -0
  40. package/dist/knowledge/ru-en-terms.js +67 -0
  41. package/dist/knowledge/search.d.ts.map +1 -0
  42. package/dist/knowledge/search.js +2 -1
  43. package/dist/knowledge/search.js.map +1 -0
  44. package/dist/knowledge/types.d.ts.map +1 -0
  45. package/dist/knowledge/types.js.map +1 -0
  46. package/dist/server.d.ts.map +1 -0
  47. package/dist/server.js +19 -1
  48. package/dist/server.js.map +1 -0
  49. package/dist/session.d.ts.map +1 -0
  50. package/dist/session.js.map +1 -0
  51. package/dist/tools/api-call.d.ts.map +1 -0
  52. package/dist/tools/api-call.js +14 -1
  53. package/dist/tools/api-call.js.map +1 -0
  54. package/dist/tools/api-discovery.d.ts.map +1 -0
  55. package/dist/tools/api-discovery.js +109 -13
  56. package/dist/tools/api-discovery.js.map +1 -0
  57. package/dist/tools/docs.d.ts.map +1 -0
  58. package/dist/tools/docs.js +4 -1
  59. package/dist/tools/docs.js.map +1 -0
  60. package/dist/tools/guide.d.ts.map +1 -0
  61. package/dist/tools/guide.js +14 -2
  62. package/dist/tools/guide.js.map +1 -0
  63. package/dist/tools/result.d.ts.map +1 -0
  64. package/dist/tools/result.js.map +1 -0
  65. package/dist/tools/whoami.d.ts.map +1 -0
  66. package/dist/tools/whoami.js +5 -0
  67. package/dist/tools/whoami.js.map +1 -0
  68. package/dist/transports/http.d.ts.map +1 -0
  69. package/dist/transports/http.js +1 -1
  70. package/dist/transports/http.js.map +1 -0
  71. package/dist/transports/stdio.d.ts.map +1 -0
  72. package/dist/transports/stdio.js.map +1 -0
  73. package/knowledge/operating-rules.md +50 -41
  74. package/package.json +2 -1
@@ -1,5 +1,56 @@
1
1
  import { z } from 'zod';
2
+ import { unsupportedBodyFormat } from '../api/client.js';
2
3
  import { errorResult, jsonResult } from './result.js';
4
+ const sampleValue = (schema, example) => {
5
+ if (example !== undefined) {
6
+ return example;
7
+ }
8
+ if (schema.example !== undefined) {
9
+ return schema.example;
10
+ }
11
+ if (schema.enum && schema.enum.length > 0) {
12
+ return schema.enum[0];
13
+ }
14
+ switch (schema.type) {
15
+ case 'number':
16
+ case 'integer':
17
+ return 0;
18
+ case 'boolean':
19
+ return false;
20
+ case 'array':
21
+ return [];
22
+ case 'object':
23
+ return {};
24
+ default:
25
+ return `<${schema['x-source-type'] ?? schema.type ?? 'value'}>`;
26
+ }
27
+ };
28
+ const isWorthShowing = (param) => param.required ||
29
+ param.example !== undefined ||
30
+ param.schema.example !== undefined ||
31
+ param.schema.default !== undefined;
32
+ const argsFor = (params, location, filter) => {
33
+ const out = {};
34
+ for (const param of params) {
35
+ if (param.location !== location || !filter(param)) {
36
+ continue;
37
+ }
38
+ out[param.name] = sampleValue(param.schema, param.example);
39
+ }
40
+ return out;
41
+ };
42
+ const callExample = (operation) => {
43
+ const path = argsFor(operation.params, 'path', () => true);
44
+ const query = argsFor(operation.params, 'query', isWorthShowing);
45
+ return {
46
+ opId: operation.opId,
47
+ ...(Object.keys(path).length > 0 ? { path } : {}),
48
+ ...(Object.keys(query).length > 0 ? { query } : {}),
49
+ ...(operation.body?.schema.example !== undefined
50
+ ? { body: operation.body.schema.example }
51
+ : {}),
52
+ };
53
+ };
3
54
  export const registerApiDiscovery = (server, deps) => {
4
55
  const { catalog } = deps;
5
56
  server.registerTool('cms_api_search', {
@@ -22,10 +73,16 @@ export const registerApiDiscovery = (server, deps) => {
22
73
  ...(limit ? { limit } : {}),
23
74
  });
24
75
  if (hits.length === 0) {
76
+ const unexposed = catalog.unexposedMatches(query);
25
77
  return jsonResult({
26
78
  hits: [],
27
79
  tags: [...new Set(catalog.operations().map((o) => o.tag))].sort(),
28
- hint: 'Nothing matched. Try a bare entity name, or filter by one of the tags listed here.',
80
+ ...(unexposed.length > 0 ? { knownButNotExposed: unexposed } : {}),
81
+ hint: unexposed.length > 0
82
+ ? 'Nothing matched in this catalog, but the platform does know the names under ' +
83
+ '"knownButNotExposed" — this instance simply does not serve them, so no path ' +
84
+ 'you construct will reach them. Do not guess URLs: report them as unavailable here.'
85
+ : 'Nothing matched. Try a bare entity name, or filter by one of the tags listed here.',
29
86
  });
30
87
  }
31
88
  return jsonResult({
@@ -35,7 +92,7 @@ export const registerApiDiscovery = (server, deps) => {
35
92
  });
36
93
  server.registerTool('cms_api_describe', {
37
94
  title: 'Describe an Admin API operation',
38
- description: 'Full detail for one operation: path and query parameters, request-body schema, required permission, risk level, and whether it is permanently confirm-gated. Fields marked "x-loose": true could not be converted to a JSON Schema type — trust their example, not their type.',
95
+ description: 'Full detail for one operation: a ready-to-copy "example" call, path and query parameters, request-body schema, required permission, risk level, and whether it is permanently confirm-gated. Fields marked "x-loose": true could not be converted to a JSON Schema type — trust their example, not their type. Where the operation is known to answer success without doing the work, "silentNoOp" and "verifyWith" say so and name the read that proves it.',
39
96
  inputSchema: {
40
97
  opId: z.string().min(1).describe('Operation id from cms_api_search, e.g. "AdminPagesController_findAllRoot".'),
41
98
  },
@@ -43,18 +100,28 @@ export const registerApiDiscovery = (server, deps) => {
43
100
  }, ({ opId }) => {
44
101
  const operation = catalog.get(opId);
45
102
  if (!operation) {
103
+ const unexposed = catalog.unexposedMatches(opId);
46
104
  return errorResult(`Unknown opId "${opId}".`, {
47
105
  didYouMean: catalog.suggest(opId),
48
- hint: 'Operation ids come from cms_api_search do not construct them by hand.',
106
+ ...(unexposed.length > 0 ? { knownButNotExposed: unexposed } : {}),
107
+ hint: unexposed.length > 0
108
+ ? 'The platform knows this name, but this instance does not serve the operation, ' +
109
+ 'so it cannot be called from here by any path. Report it as unavailable.'
110
+ : 'Operation ids come from cms_api_search — do not construct them by hand.',
49
111
  });
50
112
  }
51
- const loose = [
52
- ...(operation.body?.schema.properties
53
- ? Object.entries(operation.body.schema.properties)
54
- .filter(([, schema]) => schema['x-loose'] === true)
55
- .map(([name, schema]) => ({ field: name, sourceType: schema['x-source-type'] }))
56
- : []),
57
- ];
113
+ const formatDenial = unsupportedBodyFormat(operation);
114
+ const properties = operation.body?.schema.properties;
115
+ const loose = properties
116
+ ? Object.entries(properties)
117
+ .filter(([, schema]) => schema['x-loose'] === true)
118
+ .map(([name, schema]) => ({ field: name, sourceType: schema['x-source-type'] }))
119
+ : [];
120
+ const mismatched = properties
121
+ ? Object.entries(properties)
122
+ .filter(([, schema]) => schema['x-example-mismatch'] !== undefined)
123
+ .map(([name, schema]) => ({ field: name, problem: schema['x-example-mismatch'] }))
124
+ : [];
58
125
  return jsonResult({
59
126
  opId: operation.opId,
60
127
  method: operation.method.toUpperCase(),
@@ -66,12 +133,41 @@ export const registerApiDiscovery = (server, deps) => {
66
133
  risk: operation.risk,
67
134
  alwaysConfirm: operation.alwaysConfirm,
68
135
  params: operation.params,
136
+ paramsByLocation: {
137
+ path: operation.params.filter((p) => p.location === 'path').map((p) => p.name),
138
+ query: operation.params.filter((p) => p.location === 'query').map((p) => p.name),
139
+ },
69
140
  body: operation.body ?? null,
141
+ example: callExample(operation),
70
142
  looseFields: loose,
143
+ ...(mismatched.length > 0
144
+ ? {
145
+ exampleMismatches: mismatched,
146
+ exampleMismatchHint: 'These fields declare one type and give an example of another. The example is ' +
147
+ 'the contract — the instance accepts what the example shows.',
148
+ }
149
+ : {}),
150
+ ...(operation.note ? { note: operation.note } : {}),
151
+ ...(operation.silentNoOp ? { silentNoOp: operation.silentNoOp } : {}),
152
+ ...(operation.verifyWith ? { verifyWith: operation.verifyWith } : {}),
153
+ ...(operation.body?.schema['x-unresolved'] === true
154
+ ? {
155
+ bodySchemaUnresolved: 'The document does not resolve this body schema, so the empty "properties" ' +
156
+ 'above means "unknown", not "no fields". Build the body from "example"; ' +
157
+ 'if there is none, ask the human rather than guessing.',
158
+ }
159
+ : {}),
160
+ ...(formatDenial ? { notExecutable: formatDenial } : {}),
71
161
  responseSummary: operation.responseSummary ?? null,
72
- next: operation.risk === 'read'
73
- ? 'Call it with cms_api_call { opId, path, query }.'
74
- : 'Search the knowledge base with cms_docs_search for this entity, then call cms_api_call with dryRun: true first.',
162
+ next: formatDenial
163
+ ? 'Do not call this operation report it as unavailable through MCP.'
164
+ : operation.risk === 'read'
165
+ ? 'Call it with cms_api_call, copying the "example" above.'
166
+ : operation.verifyWith
167
+ ? 'Search the knowledge base with cms_docs_search for this entity, call cms_api_call ' +
168
+ `with dryRun: true first, and afterwards read the result back with ` +
169
+ `${operation.verifyWith.opId} — a success status is not evidence here.`
170
+ : 'Search the knowledge base with cms_docs_search for this entity, then call cms_api_call with dryRun: true first.',
75
171
  });
76
172
  });
77
173
  };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-discovery.js","sourceRoot":"","sources":["../../src/tools/api-discovery.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEtD,0DAA0D;AAC1D,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,MAAiB,EAAE,IAAgB,EAAQ,EAAE;IAChF,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;IAEzB,MAAM,CAAC,YAAY,CACjB,gBAAgB,EAChB;QACE,KAAK,EAAE,6BAA6B;QACpC,WAAW,EACT,0LAA0L;QAC5L,WAAW,EAAE;YACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,gFAAgF,CAAC;YAC5G,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,qCAAqC,CAAC;YAC1E,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,EAAE;YACpE,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,iDAAiD,CAAC;YAC5F,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,E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OAAO,EAAE,SAAS,CAAC,OAAO;YAC1B,UAAU,EAAE,SAAS,CAAC,UAAU,IAAI,IAAI;YACxC,IAAI,EAAE,SAAS,CAAC,IAAI;YACpB,aAAa,EAAE,SAAS,CAAC,aAAa;YACtC,MAAM,EAAE,SAAS,CAAC,MAAM;YACxB,IAAI,EAAE,SAAS,CAAC,IAAI,IAAI,IAAI;YAC5B,WAAW,EAAE,KAAK;YAClB,eAAe,EAAE,SAAS,CAAC,eAAe,IAAI,IAAI;YAClD,IAAI,EAAE,SAAS,CAAC,QAAQ;YACxB,IAAI,EACF,SAAS,CAAC,IAAI,KAAK,MAAM;gBACvB,CAAC,CAAC,kDAAkD;gBACpD,CAAC,CAAC,uEAAuE;SAC9E,CAAC,CAAC;IACL,CAAC,CACF,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"docs.d.ts","sourceRoot":"","sources":["../../src/tools/docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEzE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAMhD,wDAAwD;AACxD,eAAO,MAAM,YAAY,GAAI,QAAQ,SAAS,EAAE,MAAM,UAAU,KAAG,IA0IlE,CAAC"}
@@ -16,7 +16,10 @@ export const registerDocs = (server, deps) => {
16
16
  if (hits.length === 0) {
17
17
  return jsonResult({
18
18
  hits: [],
19
- hint: 'Nothing matched. Try a module name (menus, orders, blocks, attributes) or an entity field name.',
19
+ hint: 'Nothing matched. The knowledge base is written in English ask in English, even ' +
20
+ 'when the conversation is not. Try a module name (menus, orders, blocks, ' +
21
+ 'attributes) or an entity field name. An empty result means this query found ' +
22
+ 'nothing, not that the CMS has no documentation for it.',
20
23
  });
21
24
  }
22
25
  return jsonResult({
@@ -0,0 +1 @@
1
+ {"version":3,"file":"docs.js","sourceRoot":"","sources":["../../src/tools/docs.ts"],"names":[],"mappings":"AACA,OAAO,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AC;AACJ,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"guide.d.ts","sourceRoot":"","sources":["../../src/tools/guide.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAMhD;;;;GAIG;AACH,eAAO,MAAM,WAAW,GAAI,MAAM,UAAU,KAAG,MAoD9C,CAAC;AAEF,gCAAgC;AAChC,eAAO,MAAM,aAAa,GAAI,QAAQ,SAAS,EAAE,MAAM,UAAU,KAAG,IAWnE,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { ALWAYS_CONFIRM_PREFIXES } from '../api/operation-notes.js';
1
2
  import { textResult } from './result.js';
2
3
  const TAG_LIMIT = 24;
3
4
  export const renderGuide = (deps) => {
@@ -50,8 +51,19 @@ export const renderGuide = (deps) => {
50
51
  '## Hard limits',
51
52
  '',
52
53
  '- Admin API only. The Content and Developer APIs are deliberately not exposed.',
53
- '- `immutable-settings`, `admins`, `backups`, `modules`, `payments/webhook`, `settings-general`,',
54
- ' `system/captcha-keys` and `auth/logout/all-users` are permanently confirm-gated.',
54
+ `- Mutations under ${ALWAYS_CONFIRM_PREFIXES.map((p) => `\`${p}\``).join(', ')} are`,
55
+ ' permanently confirm-gated, at every allow level.',
56
+ '- **Request bodies are sent as JSON only.** An operation that declares another format —',
57
+ ' file upload is `multipart/form-data` — cannot be called through this server at all.',
58
+ ' `cms_api_describe` marks it `notExecutable`; no body shape will help. Upload files',
59
+ ' outside MCP and read `mcp/docs/api/files-and-uploads` first, because doing so gives up',
60
+ ' the confirmations, permission checks and `dryRun` this server provides.',
61
+ '- **The knowledge base is written in English.** Search it in English whatever language the',
62
+ ' conversation is in; an empty result is a failed query, not a missing document.',
63
+ '- A success status is not evidence that the write landed. Where an operation is known to',
64
+ ' answer success without doing the work, `cms_api_describe` says so under `silentNoOp` and',
65
+ ' names the read that proves it under `verifyWith`. Verify with the read the *consumer*',
66
+ ' uses, not the one you wrote to.',
55
67
  '- Responses are capped; overflow is reported as `_truncated`. Narrow the query instead.',
56
68
  ...(catalog.catalog.warnings.length > 0
57
69
  ? ['', '## Warnings', '', ...catalog.catalog.warnings.map((w) => `- ${w}`)]
@@ -0,0 +1 @@
1
+ {"version":3,"file":"guide.js","sourceRoot":"","sources":["../../src/tools/guide.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,4CAA4C;AAC5C,MAAM,SAAS,GAAG,EAAE,CAAC;AAErB;;;;GAIG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,IAAgB,EAAU,EAAE;IACtD,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC;IAC5C,MAAM,MAAM,GAAG,IAAI,GAAG,EAAkB,CAAC;IACzC,KAAK,MAAM,SAAS,IAAI,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC;QAC7C,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IAClE,CAAC;IACD,MAAM,IAAI,GAAG,CAAC,GAAG,MAAM,CAAC,OAAO,EAAE,CAAC;SAC/B,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;SAC3B,KAAK,CAAC,CAAC,EAAE,SAAS,CAAC;SACnB,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,GAAG,GAAG,KAAK,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC;SAClD,IAAI,CAAC,IAAI,CAAC,CAAC;IAEd,MAAM,SAAS,GACb,MAAM,CAAC,KAAK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AAM,aAAa,GAAG,CAAC,MAAiB,EAAE,IAAgB,EAAQ,EAAE;IACzE,MAAM,CAAC,YAAY,CACjB,WAAW,EACX;QACE,KAAK,EAAE,WAAW;QAClB,WAAW,EACT,2IAA2I;QAC7I,WAAW,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE;KAC1D,EACD,GAAG,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CACpC,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"result.d.ts","sourceRoot":"","sources":["../../src/tools/result.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC/C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,+BAA+B;AAC/B,eAAO,MAAM,UAAU,GAAI,SAAS,OAAO,KAAG,UAE5C,CAAC;AAEH,kEAAkE;AAClE,eAAO,MAAM,UAAU,GAAI,MAAM,MAAM,KAAG,UAExC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,WAAW,GAAI,SAAS,MAAM,EAAE,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAG,UAK7E,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"result.js","sourceRoot":"","sources":["../../src/tools/result.ts"],"names":[],"mappings":"AAOA,+BAA+B;AAC/B,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,OAAgB,EAAc,EAAE,CAAC,CAAC;IAC3D,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC;CACpE,CAAC,CAAC;AAEH,kEAAkE;AAClE,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,IAAY,EAAc,EAAE,CAAC,CAAC;IACvD,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;CAClC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,OAAe,EAAE,KAA+B,EAAc,EAAE,CAAC,CAAC;IAC5F,OAAO,EAAE;QACP,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,CAAC,KAAK,IAAI,EAAE,CAAC,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE;KACtF;IACD,OAAO,EAAE,IAAI;CACd,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"whoami.d.ts","sourceRoot":"","sources":["../../src/tools/whoami.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAG7C,4EAA4E;AAC5E,eAAO,MAAM,cAAc,GAAI,QAAQ,SAAS,EAAE,YAAY,MAAM,OAAO,KAAG,IA4C7E,CAAC"}
@@ -26,6 +26,11 @@ export const registerWhoami = (server, getSession) => {
26
26
  swaggerHash: catalog.catalog.swaggerHash,
27
27
  builtAt: catalog.catalog.builtAt,
28
28
  knownPermissions: catalog.catalog.permissions.length,
29
+ coverage: {
30
+ unexposedOperations: catalog.catalog.coverage.unexposedOpIds.length,
31
+ permissionsWithoutOperation: catalog.catalog.coverage.permissionsWithoutOperation.length,
32
+ hint: 'This catalog is what the instance serves, not everything the platform has. When cms_api_search finds nothing, it reports whether the name exists but is unexposed — trust that over constructing a path.',
33
+ },
29
34
  warnings: catalog.catalog.warnings,
30
35
  },
31
36
  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CAAC,OAAO,CAAC,WAAW;gBACxC,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,OAAO;gBAChC,gBAAgB,EAAE,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,MAAM;gBACpD,QAAQ,EAAE,OAAO,CAAC,OAAO,CAAC,QAAQ;aACnC;YACD,SAAS,EAAE;gBACT,MAAM,EAAE,SAAS,CAAC,IAAI,CAAC,MAAM;gBAC7B,OAAO,EAAE,SAAS,CAAC,IAAI,CAAC,OAAO;gBAC/B,IAAI,EAAE,SAAS,CAAC,IAAI,EAAE,CAAC,MAAM;gBAC7B,QAAQ,EAAE,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM;aACvC;YACD,KAAK,EAAE,MAAM,CAAC,SAAS,IAAI,IAAI;SAChC,CAAC,CAAC;IACL,CAAC,CACF,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../src/transports/http.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AA6DlD;;;;GAIG;AACH,eAAO,MAAM,OAAO,GAAU,QAAQ,MAAM,KAAG,OAAO,CAAC;IAAE,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;CAAE,CAiFpF,CAAC"}
@@ -45,7 +45,7 @@ const fillCatalog = async (deps, session) => {
45
45
  }
46
46
  try {
47
47
  const bearer = await session.accessToken();
48
- const rebuilt = await OperationCatalog.resolve(deps.config, bearer);
48
+ const rebuilt = await OperationCatalog.resolve(deps.config, { bearer });
49
49
  if (!rebuilt.isEmpty) {
50
50
  deps.catalog.adopt(rebuilt);
51
51
  }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http.js","sourceRoot":"","sources":["../../src/transports/http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,6BAA6B,EAAE,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AEH,OAAO,CAAC,MAAM,CAAC,KAAK,CAClB,6CAA6C,MAAM,CAAC,IAAI,CAAC,IAAI,IAAI,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO;QAC9F,UAAU,MAAM,CAAC,KAAK,aAAa,MAAM,CAAC,OAAO,KAAK,CACzD,CAAC;IAEF,OAAO;QACL,KAAK,EAAE,KAAK,IAAI,EAAE;YAChB,KAAK,MAAM,OAAO,IAAI,QAAQ,CAAC,MAAM,EAAE,EAAE,CAAC;gBACxC,MAAM,OAAO,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC;YAClC,CAAC;YACD,QAAQ,CAAC,KAAK,EAAE,CAAC;YACjB,MAAM,IAAI,OAAO,CAAO,CAAC,YAAY,EAAE,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC;QACpF,CAAC;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stdio.d.ts","sourceRoot":"","sources":["../../src/transports/stdio.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAGlD;;;;GAIG;AACH,eAAO,MAAM,QAAQ,GAAU,QAAQ,MAAM,KAAG,OAAO,CAAC,IAAI,CAK3D,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stdio.js","sourceRoot":"","sources":["../../src/transports/stdio.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAE9D,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC;;;;GAIG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,KAAK,EAAE,MAAc,EAAiB,EAAE;IAC9D,MAAM,IAAI,GAAG,gBAAgB,CAAC,MAAM,CAAC,CAAC;IACtC,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAClC,MAAM,MAAM,GAAG,YAAY,CAAC,IAAI,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,CAAC;IACjD,MAAM,MAAM,CAAC,OAAO,CAAC,IAAI,oBAAoB,EAAE,CAAC,CAAC;AACnD,CAAC,CAAC"}
@@ -1,25 +1,23 @@
1
1
  # Operating rules for the OneEntry Admin API
2
2
 
3
- Read this before your first write. Every rule here has broken a real payload, and each one links to the document that explains it in full.
4
-
5
- These rules are short on purpose. When one of them applies to what you are about to do, follow the pointer before you build the body.
3
+ Read this before your first write. Every rule here has broken a real payload; each links to the document explaining it in full. When one applies to what you are about to do, follow the pointer before you build the body.
6
4
 
7
5
  → `mcp/docs/server/doc-map` · `mcp/docs/server/payload-conventions`
8
6
 
9
7
  ## The loop you must follow
10
8
 
11
9
  1. `cms_guide` once, at the start.
12
- 2. `cms_docs_search` for the entity you are about to touch — **before** you write a payload, not after a 400.
13
- 3. `cms_api_search` to find the operation, then `cms_api_describe` for its exact shape.
10
+ 2. `cms_docs_search` for the entity you are about to touch — **before** the payload, not after a 400.
11
+ 3. `cms_api_search` for the operation, then `cms_api_describe` for its shape.
14
12
  4. `cms_api_call` with `dryRun: true` for anything that mutates, then again with the confirm token if one was issued.
15
13
 
16
- Never invent a path, an operation id or a body key. `cms_api_search` is the only authority on what exists; the documents are the authority on what the values mean.
14
+ Never invent a path, an operation id or a body key. `cms_api_search` is the only authority on what exists.
17
15
 
18
16
  ## Trust the example not the type
19
17
 
20
- The OpenAPI document this catalog is built from contains field types that are not JSON Schema types. `cms_api_describe` normalises what it can and marks the rest `"x-loose": true`, with the original under `x-source-type`.
18
+ The API document carries field types that are not JSON Schema types. `cms_api_describe` normalises what it can and marks the rest `"x-loose": true`.
21
19
 
22
- For a loose field, **the `example` is the contract**. Copy its shape. Client-side validation of your body is advisory only — the instance is the real validator, so a call is never blocked because a loose field could not be checked.
20
+ For those, **the `example` is the contract** copy its shape. Validation here is advisory; the instance is the real validator, so a call is never blocked over a field we could not check. A field flagged `x-example-mismatch` contradicts its own type, and the example wins there too.
23
21
 
24
22
  → `mcp/docs/server/cms-api-describe#loose-fields`
25
23
 
@@ -31,7 +29,7 @@ Titles and descriptive content live under `localizeInfos`, keyed by locale code:
31
29
  { "localizeInfos": { "en_US": { "title": "Summer sale" } } }
32
30
  ```
33
31
 
34
- Required when creating a product, and effectively required on pages. Do not hardcode `en_US`: read the active locale codes from the instance first, and write every locale the instance has active if the content is meant to be visible in all of them.
32
+ Required on a product, effectively required on a page. Do not hardcode `en_US`: read the active locales with `AdminLocalesController_findAllActive` and write every one the content is meant to appear in.
35
33
 
36
34
  → `mcp/docs/api/locales`
37
35
 
@@ -43,79 +41,90 @@ Required when creating a product, and effectively required on pages. Do not hard
43
41
  { "attributesSets": { "en_US": { "string_id42": "SKU-1" } } }
44
42
  ```
45
43
 
46
- The inner key is `<attribute type>_id<attribute id>`, taken from the attribute set the entity belongs to. Read the set before you build the body.
47
-
48
- A flat single-level map is accepted and stored empty. The call answers 201 and the attributes are silently missing, so always read the entity back by id after creating it.
44
+ The inner key is `<attribute type>_id<attribute id>`, read from the entity's attribute set. A flat one-level map is accepted, answers 201 and stores nothing — so read the entity back by id after creating it.
49
45
 
50
46
  → `mcp/docs/api/attribute-sets`
51
47
 
52
48
  ## Positions are lexorank or numeric depending on the endpoint
53
49
 
54
- Ordering is a lexorank **string** on parent-scoped Admin operations, and a **number** on flat lists and the Content API. Never sort a lexorank value numerically, and never reorder by patching the field directly — use the dedicated position operations of that entity.
50
+ Ordering is a lexorank **string** on parent-scoped Admin operations and a **number** on flat lists and the Content API. Never sort a lexorank numerically, and never reorder by patching the field — use that entity's position operation.
55
51
 
56
52
  → `mcp/docs/server/payload-conventions#position-is-a-lexorank-string-or-a-number`
57
53
 
58
54
  ## A read straight after a write can lag
59
55
 
60
- Reading an entity **by id** shows your write immediately. List and search responses may not, for a few seconds.
56
+ Reading an entity **by id** shows your write immediately. Lists and searches may not, for a few seconds.
61
57
 
62
- If a list does not yet show what you just created, re-read by id to confirm it exists. **Never repeat the write** — you will create a duplicate that consumes instance quota and has to be cleaned up by hand.
58
+ If a list does not show what you just created, re-read by id. **Never repeat the write** — you get a duplicate that consumes quota and has to be cleaned up by hand. And never swallow a failed read into an empty result: "empty" and "malformed" then look alike, and the next run recreates everything.
63
59
 
64
- ## Prefer marker over id
60
+ ## A 200 means accepted not applied
61
+
62
+ Several endpoints take the body as one opaque value, so a wrong **shape** is stored as happily as a right one and the answer is still `200`.
63
+
64
+ Confirm a write by its effect, and **through the read its consumer uses**. The raw record echoes your input back, wrong shape included, while the projection a site receives shows nothing — verifying through the endpoint you wrote to proves little.
65
+
66
+ → `mcp/docs/api/silent-no-ops`
67
+
68
+ ## An omitted field can mean clear it
69
+
70
+ Most updates merge. A few apply an omitted field as **"set it to nothing"**, and still answer `200`: a page without `parentId` moves to the root, a block without `blockPages` detaches from every page, a menu item without its parent reference flattens, a user without `formData` loses it.
71
+
72
+ Products, `generalTypeId` and `attributeSetId` merge, so "PUT always replaces" is the wrong lesson. Read, change what you meant to, send it back whole — then check the fields that were **not** in your body.
65
73
 
66
- Blocks, forms, menus, templates, general types and modules are addressed by a `marker` or `identifier` that is stable across instances. A numeric `id` is not: an id taken from one instance is meaningless on another, and `404 Not found` on an id you were given is usually that mistake.
74
+ `mcp/docs/server/payload-conventions#an-omitted-field-can-mean-clear-it`
67
75
 
68
- Where an operation accepts either, use the marker.
76
+ ## Prefer marker over id
77
+
78
+ Blocks, forms, menus, templates, general types and modules are addressed by a `marker` or `identifier` stable across instances. A numeric `id` is not, and a `404` on an id you were given is usually that. Where an operation accepts either, use the marker.
69
79
 
70
80
  ## Baseline data already exists do not recreate it
71
81
 
72
- Every instance arrives populated: a guest user group with its content-API permissions, the admin modules, the general types, the attribute set types and field types, the locales, the dynamic block types and their default templates, and the singleton settings records.
82
+ Every instance arrives populated: user groups, modules, general types, attribute set and field types, locales, block types with their default templates, the singleton settings.
83
+
84
+ **List first, create second.** Some duplicates fail loudly, which is harmless. The dangerous ones — user groups, modules, attribute set types, settings — **succeed silently**.
73
85
 
74
- **List first, create second.** Some duplicates fail loudly, which is harmless. The dangerous ones user groups, modules, attribute set types, settings records **succeed silently** and leave a shadow record that nothing references.
86
+ Two lists are the exception and start **empty**: product statuses and template previews. Nothing seeds them, nothing reports their absence, and without them no product is sellable and no upload gets a preview. There, create.
75
87
 
76
88
  → `mcp/docs/api/baseline-data`
77
89
 
78
90
  ## Never touch these without a human saying so
79
91
 
80
- Mutations under `immutable-settings`, `admins`, `backups`, `modules`, `payments/webhook`, `settings-general`, `system/captcha-keys` and `auth/logout/all-users` are permanently confirm-gated by this server, at every allow level.
92
+ Mutations on the instance's own configuration — admins, modules, backups, settings are permanently confirm-gated at every allow level. `cms_guide` prints the exact list.
81
93
 
82
- The gate is not a suggestion. State what you intend to change, show the human the `target` the dry run returned, and wait for them to say yes in this conversation.
94
+ The gate is not a suggestion. State what you intend to change, show the human the dry run's `target`, and wait for a yes here.
83
95
 
84
96
  → `mcp/docs/server/allow-levels#paths-that-are-always-confirm-gated`
85
97
 
86
98
  ## Permissions are checked before the request is sent
87
99
 
88
- Each operation declares the permission it requires, and this server refuses locally when the authenticated admin does not hold it. Nothing is sent, so nothing changed.
89
-
90
- A permission refusal means **ask for the grant** and stop. Retrying cannot succeed, and neither can a different operation that needs the same permission.
100
+ Each operation declares the permission it needs, and this server refuses locally when the admin does not hold it. Nothing is sent, so nothing changed. A refusal means **ask for the grant** and stop — no retry and no sibling operation gets past it.
91
101
 
92
102
  → `mcp/docs/api/admins-and-permissions`
93
103
 
94
104
  ## Truncated responses are deliberate
95
105
 
96
- Large responses come back with a `_truncated` envelope reporting what was shown and what the total was. That is this server capping what it hands you, not the API limiting itself.
97
-
98
- Do not retry hoping for more. Narrow the request with the operation's own `limit`, `offset` and filter parameters.
106
+ A large response comes back with a `_truncated` envelope reporting what was shown and what the total was. That is this server capping what it hands you, not the API. Do not retry hoping for more — narrow the request with the operation's own `limit`, `offset` and filters.
99
107
 
100
108
  → `mcp/docs/server/response-shaping`
101
109
 
102
110
  ## Operations with a single supported path
103
111
 
104
- For the calls below, one route works and the obvious alternative does not. Use the supported one directly — a different body or a retry on the other route will not help.
112
+ One route works and the obvious alternative does not. Use it directly.
105
113
 
106
- - **Create a form** — send the payload wrapped in `newForm`. The OpenAPI document shows the fields unwrapped; the wrapped form is the one the endpoint accepts.
107
- - **Update a product** — always include `blocks` (send `blocks: []` when you have nothing to set), and never include `forms`.
108
- - **Read locale codes** — use `AdminLocalesController_findAllActive`.
109
- - **List products** — the list operation is `POST /products/all`; there is no `GET /products`.
110
- - **Export operations** — `orders.export`, `payments.export` and `users.export` are not grantable on current instances. Treat them as unavailable and tell the human rather than retrying.
114
+ - **Create a form** — wrap in `newForm`, with `type` (`data` for a contact form) though the schema omits it.
115
+ - **Replace an attribute set schema** — send the schema object itself. Wrapped as `{ "schema": }` it answers 200 and destroys it.
116
+ - **Update a product** — include `blocks` (`[]` if nothing to set), never `forms`.
117
+ - **Create a menu** — with `pagesIds: []`, attaching pages later. Non-empty on create answers 500.
118
+ - **Set a product status** — `statusId` in the product update. Bulk `set-status` takes it in a field named `id`, and given `statusId` it nulls the status and answers `201 true`.
111
119
 
112
- If a call outside this list answers 5xx, stop and report it with the operation id and the request you sent. Do not retry it with a modified body.
120
+ ## List products and other calls whose input is split
113
121
 
114
- ## Where to look next
122
+ `POST /products/all` is the only way to list products, and its input is split: **paging and `langCode` go in the query, the body is an array of filters** — `[]` for none. Sent in the body they are ignored, and the 400 blames `langCode` for a value you never sent.
123
+
124
+ Copy `example` from `cms_api_describe` whole: separate `params` and `body` schemas do not assemble into an obvious call, and `example` is already one.
115
125
 
116
- With the operation hints removed from `cms_api_describe`, `cms_docs_search` and the map below are how you find anything.
126
+ A 5xx outside these two lists means stop and report it, with the operation id and the request.
127
+
128
+ ## Where to look next
117
129
 
118
- - `mcp/docs/server/doc-map` every document, with when to read it
119
- - `mcp/docs/server/payload-conventions` — the rules above, in full
120
- - `mcp/docs/api/baseline-data` — what already exists on your instance
121
- - `mcp/docs/server/errors-and-refusals` — what a specific error means and what to do next
130
+ `mcp/docs/server/doc-map` lists every document with a reason to read it. The corpus is **English** — search it in English whatever language you answer in.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oneentry/mcp-platform-server",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "MCP server that lets an AI agent operate the OneEntry Admin API, grounded in the project's own rules",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -50,6 +50,7 @@
50
50
  "start": "node dist/bin/cli.js",
51
51
  "dev": "tsx src/bin/cli.ts",
52
52
  "sync:permissions": "tsx build/sync-permissions.ts",
53
+ "docs:audit": "tsx build/docs-audit.ts",
53
54
  "publish:knowledge": "node -e \"console.error('REFUSED: the knowledge repository is hand-authored. Bulk-copying internal docs into it is prohibited.'); process.exit(1)\"",
54
55
  "lint": "eslint \"{src,build,__tests__}/**/*.ts\"",
55
56
  "test": "vitest run",