apcore-mcp 0.8.0 → 0.8.1

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/README.md +13 -2
  2. package/package.json +11 -3
package/README.md CHANGED
@@ -14,6 +14,7 @@ Converts apcore module registries into [Model Context Protocol (MCP)](https://mo
14
14
  - **OpenAI Tools** — Convert modules to OpenAI function calling format with strict mode support
15
15
  - **Schema Conversion** — Inline `$defs`/`$ref` from Pydantic-generated JSON Schema
16
16
  - **Annotation Mapping** — Map module annotations to MCP hints and OpenAI description suffixes
17
+ - **Approval Mechanism** — Built-in elicitation-based approval flow for sensitive tool executions
17
18
  - **Error Mapping** — Sanitize internal errors for safe client-facing responses
18
19
  - **Dynamic Registration** — Listen for registry changes and update tools at runtime
19
20
  - **Tool Explorer** — Browser-based UI for browsing schemas and testing tools interactively
@@ -162,11 +163,20 @@ function serve(
162
163
  port?: number;
163
164
  name?: string;
164
165
  version?: string;
166
+ dynamic?: boolean;
167
+ validateInputs?: boolean;
168
+ tags?: string[] | null;
169
+ prefix?: string | null;
170
+ logLevel?: "DEBUG" | "INFO" | "WARNING" | "ERROR" | "CRITICAL";
171
+ onStartup?: () => void | Promise<void>;
172
+ onShutdown?: () => void | Promise<void>;
173
+ metricsCollector?: MetricsExporter;
165
174
  explorer?: boolean;
166
175
  explorerPrefix?: string;
167
176
  allowExecute?: boolean;
168
177
  authenticator?: Authenticator;
169
178
  exemptPaths?: string[];
179
+ approvalHandler?: unknown;
170
180
  }
171
181
  ): Promise<void>;
172
182
  ```
@@ -292,7 +302,8 @@ src/
292
302
  │ ├── schema.ts # JSON Schema $ref inlining
293
303
  │ ├── annotations.ts # Module annotations -> MCP hints
294
304
  │ ├── errors.ts # Error sanitization
295
- └── idNormalizer.ts # Dot-notation <-> dash-notation
305
+ ├── idNormalizer.ts # Dot-notation <-> dash-notation
306
+ │ └── approval.ts # Elicitation-based approval handler
296
307
  ├── auth/
297
308
  │ ├── jwt.ts # JWT Bearer token authenticator
298
309
  │ ├── storage.ts # AsyncLocalStorage identity propagation
@@ -344,7 +355,7 @@ npm run dev
344
355
 
345
356
  ## Testing
346
357
 
347
- 284 tests across 22 test suites.
358
+ 313 tests across 23 test suites.
348
359
 
349
360
  ## License
350
361
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apcore-mcp",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "Automatic MCP Server & OpenAI Tools Bridge for apcore",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -68,5 +68,13 @@
68
68
  "dist",
69
69
  "README.md",
70
70
  "LICENSE"
71
- ]
72
- }
71
+ ],
72
+ "repository": {
73
+ "type": "git",
74
+ "url": "https://github.com/aipartnerup/apcore-mcp-typescript.git"
75
+ },
76
+ "homepage": "https://github.com/aipartnerup",
77
+ "bugs": {
78
+ "url": "https://github.com/aipartnerup/apcore-mcp-typescript/issues"
79
+ }
80
+ }