@systemdox/mcp-server 0.1.11

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/dist/http.d.ts ADDED
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Hosted MCP entry point — AWS Lambda behind API Gateway (REST), serving
3
+ * MCP Streamable HTTP in stateless mode at https://{tenant}.mcp.systemdox.com/mcp
4
+ * (specs/current/tenant-url-structure, Phase 5).
5
+ *
6
+ * Each POST is handled by a fresh server + web-standard transport (no
7
+ * sessions), which fits Lambda's execution model. Authentication is the
8
+ * platform API key: API Gateway's PwebAuthoriser validates it before this
9
+ * handler runs and puts the tenant in the authorizer context; the handler
10
+ * additionally enforces that the key's tenant matches the subdomain tenant,
11
+ * then uses the same key for the tool calls against the REST API — the
12
+ * hosted server acts strictly as the caller.
13
+ */
14
+ interface ApiGatewayEvent {
15
+ httpMethod: string;
16
+ path: string;
17
+ headers: Record<string, string | undefined> | null;
18
+ body: string | null;
19
+ isBase64Encoded: boolean;
20
+ requestContext?: {
21
+ authorizer?: Record<string, string | undefined>;
22
+ };
23
+ }
24
+ interface ApiGatewayResult {
25
+ statusCode: number;
26
+ headers: Record<string, string>;
27
+ body: string;
28
+ }
29
+ export declare function handler(event: ApiGatewayEvent): Promise<ApiGatewayResult>;
30
+ export {};