acf-mcp 1.0.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/LICENSE +21 -0
- package/README.md +87 -0
- package/content/fiches/.gitkeep +0 -0
- package/content/fiches/ACF-00.en.md +59 -0
- package/content/fiches/ACF-00.fr.md +59 -0
- package/content/fiches/ACF-01.en.md +32 -0
- package/content/fiches/ACF-01.fr.md +32 -0
- package/content/fiches/ACF-02.en.md +32 -0
- package/content/fiches/ACF-02.fr.md +32 -0
- package/content/fiches/ACF-03.en.md +78 -0
- package/content/fiches/ACF-03.fr.md +78 -0
- package/content/fiches/ACF-04.en.md +32 -0
- package/content/fiches/ACF-04.fr.md +32 -0
- package/content/fiches/ACF-05.en.md +32 -0
- package/content/fiches/ACF-05.fr.md +32 -0
- package/content/fiches/ACF-06.en.md +32 -0
- package/content/fiches/ACF-06.fr.md +32 -0
- package/content/fiches/ACF-07.en.md +32 -0
- package/content/fiches/ACF-07.fr.md +32 -0
- package/content/fiches/ACF-08.en.md +32 -0
- package/content/fiches/ACF-08.fr.md +32 -0
- package/content/fiches/ACF-09.en.md +32 -0
- package/content/fiches/ACF-09.fr.md +32 -0
- package/content/fiches/ACF-10.en.md +32 -0
- package/content/fiches/ACF-10.fr.md +32 -0
- package/content/fiches/ACF-11.en.md +32 -0
- package/content/fiches/ACF-11.fr.md +32 -0
- package/content/fiches/ACF-12.en.md +32 -0
- package/content/fiches/ACF-12.fr.md +32 -0
- package/content/fiches/ACF-13.en.md +32 -0
- package/content/fiches/ACF-13.fr.md +32 -0
- package/content/fiches/ACF-14.en.md +32 -0
- package/content/fiches/ACF-14.fr.md +32 -0
- package/content/fiches/ACF-15.en.md +32 -0
- package/content/fiches/ACF-15.fr.md +32 -0
- package/content/fiches/ACF-16.en.md +32 -0
- package/content/fiches/ACF-16.fr.md +32 -0
- package/content/framework/.gitkeep +0 -0
- package/content/framework/autonomy-levels.json +73 -0
- package/content/framework/ddao.json +16 -0
- package/content/framework/dimensions.json +83 -0
- package/content/framework/principles.json +77 -0
- package/content/glossary/.gitkeep +0 -0
- package/content/glossary/en.json +96 -0
- package/content/glossary/fr.json +96 -0
- package/content/guides/.gitkeep +0 -0
- package/content/manual/.gitkeep +0 -0
- package/content/meta.json +23 -0
- package/content/rules/.gitkeep +0 -0
- package/content/rules/ai-act-annex-i.json +54 -0
- package/content/rules/ai-act-annex-iii.json +165 -0
- package/content/rules/ai-act-roles.json +52 -0
- package/content/rules/autonomy-inference.json +38 -0
- package/content/rules/criticality-matrix.json +83 -0
- package/content/rules/ddao-controls-mapping.json +148 -0
- package/content/rules/gdpr-qualification.json +58 -0
- package/content/rules/gpai-triggers.json +41 -0
- package/content/rules/rules-meta.json +5 -0
- package/content/rules/sign-off-matrix.json +84 -0
- package/content/whitepaper/.gitkeep +0 -0
- package/dist/index.d.ts +30 -0
- package/dist/index.js +2898 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/rate-limit.d.ts +24 -0
- package/dist/lib/rate-limit.js +89 -0
- package/dist/lib/rate-limit.js.map +1 -0
- package/dist/search-index.json +1 -0
- package/dist/server-DxztThU5.d.ts +931 -0
- package/dist/transport/http.d.ts +27 -0
- package/dist/transport/http.js +2908 -0
- package/dist/transport/http.js.map +1 -0
- package/dist/transport/stdio.d.ts +1 -0
- package/dist/transport/stdio.js +2907 -0
- package/dist/transport/stdio.js.map +1 -0
- package/package.json +81 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { C as CreateAcfServerOptions } from '../server-DxztThU5.js';
|
|
2
|
+
import '@modelcontextprotocol/sdk/server/index.js';
|
|
3
|
+
import 'zod';
|
|
4
|
+
|
|
5
|
+
type McpHttpOptions = CreateAcfServerOptions;
|
|
6
|
+
/**
|
|
7
|
+
* Stateless HTTP MCP transport. Each POST is self-contained:
|
|
8
|
+
* - new transport per request,
|
|
9
|
+
* - new server per request (reuse is fine but stateless),
|
|
10
|
+
* - no session id allocated.
|
|
11
|
+
*
|
|
12
|
+
* Vercel serverless = stateless by design (lambda dies between invocations),
|
|
13
|
+
* so any in-memory session map would be useless. Cf. spec §7.2.
|
|
14
|
+
*
|
|
15
|
+
* NOTE: The plan calls for StreamableHTTPServerTransport (streamableHttp.js),
|
|
16
|
+
* but that class wraps IncomingMessage/ServerResponse (Node HTTP). For Web
|
|
17
|
+
* Standard Request/Response (Next.js App Router, Vercel Edge / Node runtime),
|
|
18
|
+
* WebStandardStreamableHTTPServerTransport (webStandardStreamableHttp.js) is
|
|
19
|
+
* the correct choice — it accepts a Web Request and returns a Web Response.
|
|
20
|
+
*
|
|
21
|
+
* The SDK enforces that POST requests carry Accept: application/json, text/event-stream.
|
|
22
|
+
* When enableJsonResponse is true we always return JSON, so we normalise the
|
|
23
|
+
* Accept header on the incoming request before handing it to the transport.
|
|
24
|
+
*/
|
|
25
|
+
declare function handleMcpRequest(req: Request, opts: McpHttpOptions): Promise<Response>;
|
|
26
|
+
|
|
27
|
+
export { type McpHttpOptions, handleMcpRequest };
|