@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.
- package/README.md +92 -31
- package/dist/agent-onboarding.d.ts +98 -0
- package/dist/agent-onboarding.js +275 -0
- package/dist/api-origin.d.ts +9 -0
- package/dist/api-origin.js +41 -0
- package/dist/canary/mcp-harness.d.ts +77 -0
- package/dist/canary/mcp-harness.js +549 -0
- package/dist/capability-truth.d.ts +29 -0
- package/dist/capability-truth.js +254 -0
- package/dist/client-interface.d.ts +22 -14
- package/dist/client.d.ts +114 -18
- package/dist/client.js +488 -56
- package/dist/demo-client.d.ts +16 -13
- package/dist/demo-client.js +171 -17
- package/dist/demo-fixtures.d.ts +3 -3
- package/dist/demo-fixtures.js +7 -7
- package/dist/fiscal-aliases.d.ts +44 -0
- package/dist/fiscal-aliases.js +62 -0
- package/dist/index.js +41 -56
- package/dist/logger.d.ts +2 -2
- package/dist/logger.js +140 -8
- package/dist/observability.d.ts +18 -29
- package/dist/observability.js +192 -105
- package/dist/openai-profile.d.ts +25 -21
- package/dist/openai-profile.js +1166 -156
- package/dist/openai-review-contract.d.ts +15 -6
- package/dist/openai-review-contract.js +715 -41
- package/dist/openai-review-oauth.d.ts +47 -0
- package/dist/openai-review-oauth.js +73 -3
- package/dist/prompts/register-all.d.ts +2 -0
- package/dist/prompts/register-all.js +2 -0
- package/dist/public-capability-contract.d.ts +39 -0
- package/dist/public-capability-contract.js +186 -0
- package/dist/redaction.d.ts +10 -0
- package/dist/redaction.js +74 -0
- package/dist/resources/register-all.js +6 -12
- package/dist/server-composition.d.ts +16 -0
- package/dist/server-composition.js +44 -0
- package/dist/tool-exposure.d.ts +25 -22
- package/dist/tool-exposure.js +199 -77
- package/dist/tools/accountingClose.d.ts +14 -5
- package/dist/tools/accountingClose.js +41 -23
- package/dist/tools/backend-availability.d.ts +3 -3
- package/dist/tools/backend-availability.js +3 -3
- package/dist/tools/clients.js +9 -9
- package/dist/tools/crm.js +22 -21
- package/dist/tools/deposits.js +30 -11
- package/dist/tools/einvoice.d.ts +1 -1
- package/dist/tools/expenses.d.ts +16 -0
- package/dist/tools/expenses.js +47 -27
- package/dist/tools/hr.d.ts +2 -3
- package/dist/tools/hr.js +8 -9
- package/dist/tools/intelligence.js +2 -2
- package/dist/tools/invoices.js +150 -47
- package/dist/tools/payroll.d.ts +5 -8
- package/dist/tools/payroll.js +19 -32
- package/dist/tools/permissions.d.ts +4 -7
- package/dist/tools/permissions.js +11 -14
- package/dist/tools/products.js +6 -6
- package/dist/tools/quotes.js +109 -24
- package/dist/tools/shared.d.ts +1431 -75
- package/dist/tools/shared.js +386 -76
- package/dist/tools/team.js +18 -14
- package/dist/tools/vendors.js +9 -9
- package/dist/tools/webhooks.js +35 -30
- package/dist/types.d.ts +28 -4
- package/docs/agent-onboarding.json +381 -0
- 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
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export declare const
|
|
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
|
-
|
|
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. */
|