@frihet/mcp-server 1.16.5 → 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 +520 -58
- package/dist/demo-client.d.ts +16 -13
- package/dist/demo-client.js +209 -29
- 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 +27 -15
- package/dist/openai-profile.js +1191 -145
- package/dist/openai-review-contract.d.ts +49 -0
- package/dist/openai-review-contract.js +919 -0
- package/dist/openai-review-oauth.d.ts +98 -0
- package/dist/openai-review-oauth.js +136 -0
- 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 +95 -4
- 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 +32 -7
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Fail-closed contract capture for the ChatGPT-reviewed MCP surface.
|
|
3
|
+
*
|
|
4
|
+
* This intentionally uses a real McpServer, real Client, in-memory MCP
|
|
5
|
+
* transport, and the production registration path. It therefore captures what
|
|
6
|
+
* tools/list serializes, not an approximation of registration config objects.
|
|
7
|
+
*/
|
|
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;
|
|
14
|
+
export type JsonValue = null | boolean | number | string | JsonValue[] | {
|
|
15
|
+
[key: string]: JsonValue;
|
|
16
|
+
};
|
|
17
|
+
export interface OpenAIReviewTool extends Record<string, JsonValue> {
|
|
18
|
+
name: string;
|
|
19
|
+
}
|
|
20
|
+
export interface OpenAIReviewContract {
|
|
21
|
+
contractVersion: number;
|
|
22
|
+
tools: OpenAIReviewTool[];
|
|
23
|
+
prompts: JsonValue[];
|
|
24
|
+
resources: JsonValue[];
|
|
25
|
+
oauth: Record<string, JsonValue>;
|
|
26
|
+
}
|
|
27
|
+
export interface OpenAIReviewMcpSurface {
|
|
28
|
+
tools: OpenAIReviewTool[];
|
|
29
|
+
prompts: JsonValue[];
|
|
30
|
+
resources: JsonValue[];
|
|
31
|
+
}
|
|
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. */
|
|
40
|
+
export declare function captureOpenAIReviewMcpSurface(): Promise<OpenAIReviewMcpSurface>;
|
|
41
|
+
export declare function buildOpenAIReviewContract(surface: OpenAIReviewMcpSurface, oauth: Record<string, JsonValue>): OpenAIReviewContract;
|
|
42
|
+
/** Canonicalize object-key and tools/list order only; arrays remain semantic. */
|
|
43
|
+
export declare function canonicalizeOpenAIReviewContract(contract: OpenAIReviewContract): OpenAIReviewContract;
|
|
44
|
+
export declare function serializeOpenAIReviewContract(contract: OpenAIReviewContract): string;
|
|
45
|
+
/**
|
|
46
|
+
* Fail closed on any semantic drift from the reviewed descriptor snapshot.
|
|
47
|
+
*/
|
|
48
|
+
export declare function assertOpenAIReviewContract(actual: OpenAIReviewContract, expected: OpenAIReviewContract): void;
|
|
49
|
+
//# sourceMappingURL=openai-review-contract.d.ts.map
|