@frihet/mcp-server 1.16.6 → 1.17.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.
Files changed (68) hide show
  1. package/README.md +92 -31
  2. package/dist/agent-onboarding.d.ts +98 -0
  3. package/dist/agent-onboarding.js +275 -0
  4. package/dist/api-origin.d.ts +9 -0
  5. package/dist/api-origin.js +41 -0
  6. package/dist/canary/mcp-harness.d.ts +77 -0
  7. package/dist/canary/mcp-harness.js +549 -0
  8. package/dist/capability-truth.d.ts +29 -0
  9. package/dist/capability-truth.js +254 -0
  10. package/dist/client-interface.d.ts +22 -14
  11. package/dist/client.d.ts +114 -18
  12. package/dist/client.js +488 -56
  13. package/dist/demo-client.d.ts +16 -13
  14. package/dist/demo-client.js +171 -17
  15. package/dist/demo-fixtures.d.ts +3 -3
  16. package/dist/demo-fixtures.js +7 -7
  17. package/dist/fiscal-aliases.d.ts +44 -0
  18. package/dist/fiscal-aliases.js +62 -0
  19. package/dist/index.js +41 -56
  20. package/dist/logger.d.ts +2 -2
  21. package/dist/logger.js +140 -8
  22. package/dist/observability.d.ts +18 -29
  23. package/dist/observability.js +192 -105
  24. package/dist/openai-profile.d.ts +25 -21
  25. package/dist/openai-profile.js +1166 -156
  26. package/dist/openai-review-contract.d.ts +15 -6
  27. package/dist/openai-review-contract.js +715 -41
  28. package/dist/openai-review-oauth.d.ts +47 -0
  29. package/dist/openai-review-oauth.js +73 -3
  30. package/dist/prompts/register-all.d.ts +2 -0
  31. package/dist/prompts/register-all.js +2 -0
  32. package/dist/public-capability-contract.d.ts +39 -0
  33. package/dist/public-capability-contract.js +186 -0
  34. package/dist/redaction.d.ts +10 -0
  35. package/dist/redaction.js +74 -0
  36. package/dist/resources/register-all.js +6 -12
  37. package/dist/server-composition.d.ts +16 -0
  38. package/dist/server-composition.js +44 -0
  39. package/dist/tool-exposure.d.ts +25 -22
  40. package/dist/tool-exposure.js +199 -77
  41. package/dist/tools/accountingClose.d.ts +14 -5
  42. package/dist/tools/accountingClose.js +41 -23
  43. package/dist/tools/backend-availability.d.ts +3 -3
  44. package/dist/tools/backend-availability.js +3 -3
  45. package/dist/tools/clients.js +9 -9
  46. package/dist/tools/crm.js +22 -21
  47. package/dist/tools/deposits.js +30 -11
  48. package/dist/tools/einvoice.d.ts +1 -1
  49. package/dist/tools/expenses.d.ts +16 -0
  50. package/dist/tools/expenses.js +47 -27
  51. package/dist/tools/hr.d.ts +2 -3
  52. package/dist/tools/hr.js +8 -9
  53. package/dist/tools/intelligence.js +2 -2
  54. package/dist/tools/invoices.js +150 -47
  55. package/dist/tools/payroll.d.ts +5 -8
  56. package/dist/tools/payroll.js +19 -32
  57. package/dist/tools/permissions.d.ts +4 -7
  58. package/dist/tools/permissions.js +11 -14
  59. package/dist/tools/products.js +6 -6
  60. package/dist/tools/quotes.js +109 -24
  61. package/dist/tools/shared.d.ts +1431 -75
  62. package/dist/tools/shared.js +386 -76
  63. package/dist/tools/team.js +18 -14
  64. package/dist/tools/vendors.js +9 -9
  65. package/dist/tools/webhooks.js +35 -30
  66. package/dist/types.d.ts +28 -4
  67. package/docs/agent-onboarding.json +381 -0
  68. package/package.json +30 -7
@@ -2,13 +2,15 @@
2
2
  * Fail-closed contract capture for the ChatGPT-reviewed MCP surface.
3
3
  *
4
4
  * This intentionally uses a real McpServer, real Client, in-memory MCP
5
- * transport, and the production registration path. It therefore freezes what
5
+ * transport, and the production registration path. It therefore captures what
6
6
  * tools/list serializes, not an approximation of registration config objects.
7
7
  */
8
- export declare const OPENAI_REVIEW_CONTRACT_VERSION = 1;
9
- export declare const OPENAI_REVIEW_BUSINESS_TOOL_COUNT = 53;
10
- export declare const OPENAI_REVIEW_DISCOVERY_TOOLS: readonly ["describe_tool", "list_tool_groups", "search_tools"];
11
- export declare const OPENAI_REVIEW_TOTAL_TOOL_COUNT = 56;
8
+ import { Client } from "@modelcontextprotocol/sdk/client/index.js";
9
+ import { InMemoryTransport } from "@modelcontextprotocol/sdk/inMemory.js";
10
+ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
11
+ export declare const OPENAI_REVIEW_CONTRACT_VERSION = 6;
12
+ export declare const OPENAI_REVIEW_BUSINESS_TOOL_COUNT = 33;
13
+ export declare const OPENAI_REVIEW_TOTAL_TOOL_COUNT = 33;
12
14
  export type JsonValue = null | boolean | number | string | JsonValue[] | {
13
15
  [key: string]: JsonValue;
14
16
  };
@@ -27,7 +29,14 @@ export interface OpenAIReviewMcpSurface {
27
29
  prompts: JsonValue[];
28
30
  resources: JsonValue[];
29
31
  }
30
- /** Capture the exact OpenAI grouped surface over a real tools/list request. */
32
+ export interface OpenAIReviewSdkRuntime {
33
+ Client: typeof Client;
34
+ InMemoryTransport: typeof InMemoryTransport;
35
+ McpServer: typeof McpServer;
36
+ }
37
+ /** Capture the exact OpenAI full-description surface with a caller-selected SDK tree. */
38
+ export declare function captureOpenAIReviewMcpSurfaceWithRuntime(sdkRuntime: OpenAIReviewSdkRuntime): Promise<OpenAIReviewMcpSurface>;
39
+ /** Capture the package-local surface; deploy gates inject the Worker runtime. */
31
40
  export declare function captureOpenAIReviewMcpSurface(): Promise<OpenAIReviewMcpSurface>;
32
41
  export declare function buildOpenAIReviewContract(surface: OpenAIReviewMcpSurface, oauth: Record<string, JsonValue>): OpenAIReviewContract;
33
42
  /** Canonicalize object-key and tools/list order only; arrays remain semantic. */