@kya-os/mcp-i 0.1.0 → 1.2.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 +406 -71
- package/dist/149.js +1 -0
- package/dist/189.js +1 -0
- package/dist/261.js +1 -0
- package/dist/28.js +1 -0
- package/dist/295.js +1 -0
- package/dist/460.js +1 -0
- package/dist/570.js +1 -0
- package/dist/634.js +1 -0
- package/dist/647.js +1 -0
- package/dist/67.js +1 -0
- package/dist/739.js +1 -0
- package/dist/742.js +1 -0
- package/dist/904.js +1 -0
- package/dist/938.js +1 -0
- package/dist/auth/api-key.d.ts +16 -0
- package/dist/auth/api-key.js +82 -0
- package/dist/auth/jwt.d.ts +43 -0
- package/dist/auth/jwt.js +51 -0
- package/dist/auth/oauth/factory.d.ts +12 -0
- package/dist/auth/oauth/factory.js +36 -0
- package/dist/auth/oauth/index.d.ts +5 -0
- package/dist/auth/oauth/index.js +27 -0
- package/dist/auth/oauth/providers/proxy-provider.d.ts +13 -0
- package/dist/auth/oauth/providers/proxy-provider.js +159 -0
- package/dist/auth/oauth/router.d.ts +4 -0
- package/dist/auth/oauth/router.js +294 -0
- package/dist/auth/oauth/storage/memory-storage.d.ts +12 -0
- package/dist/auth/oauth/storage/memory-storage.js +40 -0
- package/dist/auth/oauth/types.d.ts +112 -0
- package/dist/auth/oauth/types.js +2 -0
- package/dist/cache/__tests__/cloudflare-kv-nonce-cache.test.d.ts +4 -0
- package/dist/cache/__tests__/cloudflare-kv-nonce-cache.test.js +176 -0
- package/dist/cache/__tests__/concurrency.test.d.ts +5 -0
- package/dist/cache/__tests__/concurrency.test.js +300 -0
- package/dist/cache/__tests__/dynamodb-nonce-cache.test.d.ts +4 -0
- package/dist/cache/__tests__/dynamodb-nonce-cache.test.js +176 -0
- package/dist/cache/__tests__/memory-nonce-cache.test.d.ts +4 -0
- package/dist/cache/__tests__/memory-nonce-cache.test.js +132 -0
- package/dist/cache/__tests__/nonce-cache-factory-simple.test.d.ts +4 -0
- package/dist/cache/__tests__/nonce-cache-factory-simple.test.js +133 -0
- package/dist/cache/__tests__/nonce-cache-factory.test.d.ts +4 -0
- package/dist/cache/__tests__/nonce-cache-factory.test.js +252 -0
- package/dist/cache/__tests__/redis-nonce-cache.test.d.ts +4 -0
- package/dist/cache/__tests__/redis-nonce-cache.test.js +95 -0
- package/dist/cache/cloudflare-kv-nonce-cache.d.ts +14 -0
- package/dist/cache/cloudflare-kv-nonce-cache.js +93 -0
- package/dist/cache/dynamodb-nonce-cache.d.ts +15 -0
- package/dist/cache/dynamodb-nonce-cache.js +92 -0
- package/dist/cache/index.d.ts +16 -0
- package/dist/cache/index.js +32 -0
- package/dist/cache/memory-nonce-cache.d.ts +44 -0
- package/dist/cache/memory-nonce-cache.js +105 -0
- package/dist/cache/nonce-cache-factory.d.ts +20 -0
- package/dist/cache/nonce-cache-factory.js +208 -0
- package/dist/cache/redis-nonce-cache.d.ts +14 -0
- package/dist/cache/redis-nonce-cache.js +53 -0
- package/dist/compiler/compiler-context.d.ts +23 -0
- package/dist/compiler/compiler-context.js +24 -0
- package/dist/compiler/config/constants.d.ts +41 -0
- package/dist/compiler/config/constants.js +45 -0
- package/dist/compiler/config/index.d.ts +252 -0
- package/dist/compiler/config/index.js +15 -0
- package/dist/compiler/config/injection.d.ts +26 -0
- package/dist/compiler/config/injection.js +58 -0
- package/dist/compiler/config/schemas/experimental/index.d.ts +91 -0
- package/dist/compiler/config/schemas/experimental/index.js +16 -0
- package/dist/compiler/config/schemas/experimental/oauth.d.ts +74 -0
- package/dist/compiler/config/schemas/experimental/oauth.js +25 -0
- package/dist/compiler/config/schemas/index.d.ts +6 -0
- package/dist/compiler/config/schemas/index.js +17 -0
- package/dist/compiler/config/schemas/paths.d.ts +9 -0
- package/dist/compiler/config/schemas/paths.js +12 -0
- package/dist/compiler/config/schemas/transport/http.d.ts +82 -0
- package/dist/compiler/config/schemas/transport/http.js +33 -0
- package/dist/compiler/config/schemas/transport/stdio.d.ts +9 -0
- package/dist/compiler/config/schemas/transport/stdio.js +15 -0
- package/dist/compiler/config/schemas/webpack.d.ts +3 -0
- package/dist/compiler/config/schemas/webpack.js +15 -0
- package/dist/compiler/config/types.d.ts +1 -0
- package/dist/compiler/config/types.js +2 -0
- package/dist/compiler/config/utils.d.ts +20 -0
- package/dist/compiler/config/utils.js +36 -0
- package/dist/compiler/generate-env-code.d.ts +1 -0
- package/dist/compiler/generate-env-code.js +8 -0
- package/dist/compiler/generate-import-code.d.ts +1 -0
- package/dist/compiler/generate-import-code.js +24 -0
- package/dist/compiler/get-webpack-config/get-entries.d.ts +3 -0
- package/dist/compiler/get-webpack-config/get-entries.js +29 -0
- package/dist/compiler/get-webpack-config/get-externals.d.ts +7 -0
- package/dist/compiler/get-webpack-config/get-externals.js +88 -0
- package/dist/compiler/get-webpack-config/get-injected-variables.d.ts +8 -0
- package/dist/compiler/get-webpack-config/get-injected-variables.js +25 -0
- package/dist/compiler/get-webpack-config/index.d.ts +4 -0
- package/dist/compiler/get-webpack-config/index.js +101 -0
- package/dist/compiler/get-webpack-config/plugins.d.ts +8 -0
- package/dist/compiler/get-webpack-config/plugins.js +132 -0
- package/dist/compiler/get-webpack-config/resolve-tsconfig-paths.d.ts +9 -0
- package/dist/compiler/get-webpack-config/resolve-tsconfig-paths.js +40 -0
- package/dist/compiler/index.d.ts +6 -0
- package/dist/compiler/index.js +194 -0
- package/dist/compiler/on-first-build.d.ts +3 -0
- package/dist/compiler/on-first-build.js +58 -0
- package/dist/compiler/parse-xmcp-config.d.ts +9 -0
- package/dist/compiler/parse-xmcp-config.js +155 -0
- package/dist/compiler/start-http-server.d.ts +1 -0
- package/dist/compiler/start-http-server.js +34 -0
- package/dist/index.d.ts +12 -54
- package/dist/index.js +22 -190
- package/dist/index.js.LICENSE.txt +49 -0
- package/dist/runtime/__tests__/audit.test.d.ts +4 -0
- package/dist/runtime/__tests__/audit.test.js +328 -0
- package/dist/runtime/__tests__/identity.test.d.ts +4 -0
- package/dist/runtime/__tests__/identity.test.js +164 -0
- package/dist/runtime/__tests__/mcpi-runtime.test.d.ts +4 -0
- package/dist/runtime/__tests__/mcpi-runtime.test.js +372 -0
- package/dist/runtime/__tests__/proof.test.d.ts +4 -0
- package/dist/runtime/__tests__/proof.test.js +302 -0
- package/dist/runtime/__tests__/session.test.d.ts +4 -0
- package/dist/runtime/__tests__/session.test.js +254 -0
- package/dist/runtime/__tests__/well-known.test.d.ts +4 -0
- package/dist/runtime/__tests__/well-known.test.js +312 -0
- package/dist/runtime/adapter-express.js +2 -0
- package/dist/runtime/adapter-express.js.LICENSE.txt +252 -0
- package/dist/runtime/adapter-nextjs.js +2 -0
- package/dist/runtime/adapter-nextjs.js.LICENSE.txt +53 -0
- package/dist/runtime/adapters/express/index.d.ts +2 -0
- package/dist/runtime/adapters/express/index.js +48 -0
- package/dist/runtime/adapters/nextjs/index.d.ts +8 -0
- package/dist/runtime/adapters/nextjs/index.js +18 -0
- package/dist/runtime/audit.d.ts +93 -0
- package/dist/runtime/audit.js +212 -0
- package/dist/runtime/debug.d.ts +118 -0
- package/dist/runtime/debug.js +612 -0
- package/dist/runtime/delegation-hooks.d.ts +85 -0
- package/dist/runtime/delegation-hooks.js +116 -0
- package/dist/runtime/demo.d.ts +71 -0
- package/dist/runtime/demo.js +135 -0
- package/dist/runtime/headers.d.ts +1 -0
- package/dist/runtime/headers.js +9 -0
- package/dist/runtime/http.js +2 -0
- package/dist/runtime/http.js.LICENSE.txt +252 -0
- package/dist/runtime/identity.d.ts +105 -0
- package/dist/runtime/identity.js +232 -0
- package/dist/runtime/index.d.ts +16 -0
- package/dist/runtime/index.js +56 -0
- package/dist/runtime/mcpi-runtime.d.ts +164 -0
- package/dist/runtime/mcpi-runtime.js +352 -0
- package/dist/runtime/proof.d.ts +87 -0
- package/dist/runtime/proof.js +223 -0
- package/dist/runtime/session.d.ts +88 -0
- package/dist/runtime/session.js +216 -0
- package/dist/runtime/stdio.js +2 -0
- package/dist/runtime/stdio.js.LICENSE.txt +1 -0
- package/dist/runtime/templates/home.d.ts +2 -0
- package/dist/runtime/templates/home.js +50 -0
- package/dist/runtime/transports/http/base-streamable-http.d.ts +25 -0
- package/dist/runtime/transports/http/base-streamable-http.js +16 -0
- package/dist/runtime/transports/http/http-context.d.ts +9 -0
- package/dist/runtime/transports/http/http-context.js +8 -0
- package/dist/runtime/transports/http/index.d.ts +1 -0
- package/dist/runtime/transports/http/index.js +55 -0
- package/dist/runtime/transports/http/setup-cors.d.ts +4 -0
- package/dist/runtime/transports/http/setup-cors.js +24 -0
- package/dist/runtime/transports/http/stateless-streamable-http.d.ts +39 -0
- package/dist/runtime/transports/http/stateless-streamable-http.js +331 -0
- package/dist/runtime/transports/stdio/index.d.ts +1 -0
- package/dist/runtime/transports/stdio/index.js +51 -0
- package/dist/runtime/utils/server.d.ts +42 -0
- package/dist/runtime/utils/server.js +39 -0
- package/dist/runtime/utils/tools.d.ts +8 -0
- package/dist/runtime/utils/tools.js +115 -0
- package/dist/runtime/verifier-middleware.d.ts +76 -0
- package/dist/runtime/verifier-middleware.js +322 -0
- package/dist/runtime/well-known.d.ts +151 -0
- package/dist/runtime/well-known.js +258 -0
- package/dist/storage/config.d.ts +28 -0
- package/dist/storage/config.js +79 -0
- package/dist/storage/delegation.d.ts +59 -0
- package/dist/storage/delegation.js +130 -0
- package/dist/storage/merkle-verifier.d.ts +84 -0
- package/dist/storage/merkle-verifier.js +261 -0
- package/dist/test/__tests__/nonce-cache-integration.test.d.ts +1 -0
- package/dist/test/__tests__/nonce-cache-integration.test.js +116 -0
- package/dist/test/__tests__/nonce-cache.test.d.ts +1 -0
- package/dist/test/__tests__/nonce-cache.test.js +122 -0
- package/dist/test/__tests__/runtime-integration.test.d.ts +4 -0
- package/dist/test/__tests__/runtime-integration.test.js +192 -0
- package/dist/test/__tests__/test-infrastructure.test.d.ts +4 -0
- package/dist/test/__tests__/test-infrastructure.test.js +178 -0
- package/dist/test/deterministic-keys.d.ts +31 -0
- package/dist/test/deterministic-keys.js +108 -0
- package/dist/test/examples/test-usage-example.d.ts +140 -0
- package/dist/test/examples/test-usage-example.js +175 -0
- package/dist/test/index.d.ts +11 -0
- package/dist/test/index.js +27 -0
- package/dist/test/local-verification.d.ts +28 -0
- package/dist/test/local-verification.js +342 -0
- package/dist/test/mock-identity-provider.d.ts +96 -0
- package/dist/test/mock-identity-provider.js +243 -0
- package/dist/test/runtime-integration.d.ts +63 -0
- package/dist/test/runtime-integration.js +140 -0
- package/dist/test/test-environment.d.ts +26 -0
- package/dist/test/test-environment.js +50 -0
- package/dist/types/declarations.d.ts +1 -0
- package/dist/types/declarations.js +6 -0
- package/dist/types/middleware.d.ts +2 -0
- package/dist/types/middleware.js +2 -0
- package/dist/types/tool.d.ts +80 -0
- package/dist/types/tool.js +2 -0
- package/dist/utils/cli-icons.d.ts +3 -0
- package/dist/utils/cli-icons.js +7 -0
- package/dist/utils/constants.d.ts +6 -0
- package/dist/utils/constants.js +13 -0
- package/dist/utils/context.d.ts +33 -0
- package/dist/utils/context.js +58 -0
- package/dist/utils/file-watcher.d.ts +19 -0
- package/dist/utils/file-watcher.js +49 -0
- package/dist/utils/fs-utils.d.ts +2 -0
- package/dist/utils/fs-utils.js +22 -0
- package/dist/utils/path-validation.d.ts +3 -0
- package/dist/utils/path-validation.js +56 -0
- package/dist/utils/spawn-process.d.ts +9 -0
- package/dist/utils/spawn-process.js +50 -0
- package/dist/utils/subscribable.d.ts +12 -0
- package/dist/utils/subscribable.js +44 -0
- package/package.json +99 -21
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ChildProcess } from "child_process";
|
|
2
|
+
/**
|
|
3
|
+
* Pass in a ChildProcess, and this will spawn a watchdog process that
|
|
4
|
+
* will make sure it exits if the parent does, thus preventing any
|
|
5
|
+
* dangling detached zombie processes.
|
|
6
|
+
*
|
|
7
|
+
* If the child ends before the parent, then the watchdog will terminate.
|
|
8
|
+
*/
|
|
9
|
+
export declare const watchdog: (child: ChildProcess) => ChildProcess;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Based on https://www.npmjs.com/package/foreground-child
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.watchdog = void 0;
|
|
5
|
+
// this spawns a child process that listens for SIGHUP when the
|
|
6
|
+
// parent process exits, and after 200ms, sends a SIGKILL to the
|
|
7
|
+
// child, in case it did not terminate.
|
|
8
|
+
const child_process_1 = require("child_process");
|
|
9
|
+
const watchdogCode = String.raw `
|
|
10
|
+
const pid = parseInt(process.argv[1], 10)
|
|
11
|
+
process.title = 'node (foreground-child watchdog pid=' + pid + ')'
|
|
12
|
+
if (!isNaN(pid)) {
|
|
13
|
+
let barked = false
|
|
14
|
+
// keepalive
|
|
15
|
+
const interval = setInterval(() => {}, 60000)
|
|
16
|
+
const bark = () => {
|
|
17
|
+
clearInterval(interval)
|
|
18
|
+
if (barked) return
|
|
19
|
+
barked = true
|
|
20
|
+
process.removeListener('SIGHUP', bark)
|
|
21
|
+
setTimeout(() => {
|
|
22
|
+
try {
|
|
23
|
+
process.kill(pid, 'SIGKILL')
|
|
24
|
+
setTimeout(() => process.exit(), 200)
|
|
25
|
+
} catch (_) {}
|
|
26
|
+
}, 500)
|
|
27
|
+
})
|
|
28
|
+
process.on('SIGHUP', bark)
|
|
29
|
+
}
|
|
30
|
+
`;
|
|
31
|
+
/**
|
|
32
|
+
* Pass in a ChildProcess, and this will spawn a watchdog process that
|
|
33
|
+
* will make sure it exits if the parent does, thus preventing any
|
|
34
|
+
* dangling detached zombie processes.
|
|
35
|
+
*
|
|
36
|
+
* If the child ends before the parent, then the watchdog will terminate.
|
|
37
|
+
*/
|
|
38
|
+
const watchdog = (child) => {
|
|
39
|
+
let dogExited = false;
|
|
40
|
+
const dog = (0, child_process_1.spawn)(process.execPath, ["-e", watchdogCode, String(child.pid)], {
|
|
41
|
+
stdio: "ignore",
|
|
42
|
+
});
|
|
43
|
+
dog.on("exit", () => (dogExited = true));
|
|
44
|
+
child.on("exit", () => {
|
|
45
|
+
if (!dogExited)
|
|
46
|
+
dog.kill("SIGKILL");
|
|
47
|
+
});
|
|
48
|
+
return dog;
|
|
49
|
+
};
|
|
50
|
+
exports.watchdog = watchdog;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type AnyFunction = (...args: any[]) => any;
|
|
2
|
+
export interface Subscribable<T extends AnyFunction = AnyFunction> {
|
|
3
|
+
addCallback: (callback: T, id?: string) => string;
|
|
4
|
+
removeCallback: (id: string | T) => void;
|
|
5
|
+
getCallbacks: () => T[];
|
|
6
|
+
getCallback: (id: string) => T;
|
|
7
|
+
getCallbackIds: () => string[];
|
|
8
|
+
clearCallbacks: () => void;
|
|
9
|
+
runCallbacks: T;
|
|
10
|
+
}
|
|
11
|
+
export declare const subscribable: <T extends AnyFunction = AnyFunction>() => Subscribable<T>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.subscribable = void 0;
|
|
4
|
+
const subscribable = () => {
|
|
5
|
+
const callbacks = {};
|
|
6
|
+
const addCallback = (callback, id) => {
|
|
7
|
+
const _id = id || crypto.randomUUID();
|
|
8
|
+
callbacks[_id] = callback;
|
|
9
|
+
return _id;
|
|
10
|
+
};
|
|
11
|
+
const removeCallback = (id) => {
|
|
12
|
+
if (typeof id === "function") {
|
|
13
|
+
const key = Object.keys(callbacks).find((k) => callbacks[k] === id);
|
|
14
|
+
if (key)
|
|
15
|
+
delete callbacks[key];
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
delete callbacks[id];
|
|
19
|
+
};
|
|
20
|
+
const getCallbacks = () => Object.values(callbacks);
|
|
21
|
+
const getCallback = (id) => callbacks[id];
|
|
22
|
+
const clearCallbacks = () => {
|
|
23
|
+
Object.keys(callbacks).forEach((id) => {
|
|
24
|
+
removeCallback(id);
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
const runCallbacks = (...params) => {
|
|
28
|
+
let response = undefined;
|
|
29
|
+
Object.values(callbacks).forEach((callback) => {
|
|
30
|
+
response = callback(...params);
|
|
31
|
+
});
|
|
32
|
+
return response;
|
|
33
|
+
};
|
|
34
|
+
return {
|
|
35
|
+
addCallback,
|
|
36
|
+
removeCallback,
|
|
37
|
+
getCallback,
|
|
38
|
+
getCallbacks,
|
|
39
|
+
getCallbackIds: () => Object.keys(callbacks),
|
|
40
|
+
clearCallbacks,
|
|
41
|
+
runCallbacks: runCallbacks,
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
exports.subscribable = subscribable;
|
package/package.json
CHANGED
|
@@ -1,39 +1,117 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kya-os/mcp-i",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.2.0",
|
|
4
|
+
"description": "The TypeScript MCP framework with identity features built-in",
|
|
5
|
+
"type": "commonjs",
|
|
5
6
|
"main": "dist/index.js",
|
|
6
7
|
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"require": "./dist/index.js",
|
|
11
|
+
"import": "./dist/index.js",
|
|
12
|
+
"types": "./dist/index.d.ts"
|
|
13
|
+
},
|
|
14
|
+
"./platforms": {
|
|
15
|
+
"require": "./dist/identity/platforms.js",
|
|
16
|
+
"import": "./dist/identity/platforms.js",
|
|
17
|
+
"types": "./dist/identity/platforms.d.ts"
|
|
18
|
+
},
|
|
19
|
+
"./test": {
|
|
20
|
+
"require": "./dist/test/index.js",
|
|
21
|
+
"import": "./dist/test/index.js",
|
|
22
|
+
"types": "./dist/test/index.d.ts"
|
|
23
|
+
},
|
|
24
|
+
"./headers": {
|
|
25
|
+
"require": "./dist/runtime/headers.js",
|
|
26
|
+
"import": "./dist/runtime/headers.js",
|
|
27
|
+
"types": "./dist/runtime/headers.d.ts"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
7
30
|
"files": [
|
|
8
|
-
"dist",
|
|
9
|
-
"README.md"
|
|
10
|
-
"LICENSE"
|
|
31
|
+
"dist/**/*",
|
|
32
|
+
"README.md"
|
|
11
33
|
],
|
|
12
34
|
"scripts": {
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
35
|
+
"dev": "cross-env NODE_ENV=development tsx --watch --tsconfig ./bundler.tsconfig.json ./bundler/index.ts",
|
|
36
|
+
"build": "cross-env NODE_ENV=production tsx --tsconfig ./bundler.tsconfig.json ./bundler/index.ts && node scripts/fix-esm-imports.js",
|
|
37
|
+
"test": "vitest",
|
|
38
|
+
"lint": "eslint src/**/*.ts",
|
|
39
|
+
"type-check": "tsc --noEmit"
|
|
16
40
|
},
|
|
17
41
|
"keywords": [
|
|
18
|
-
"mcp",
|
|
19
42
|
"mcp-i",
|
|
43
|
+
"mcp",
|
|
20
44
|
"identity",
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"did"
|
|
45
|
+
"did",
|
|
46
|
+
"model-context-protocol"
|
|
24
47
|
],
|
|
25
|
-
"author": "Dylan Hobbs <dylan@vouched.id>",
|
|
26
|
-
"license": "MIT",
|
|
27
48
|
"dependencies": {
|
|
28
|
-
"
|
|
49
|
+
"@kya-os/contracts": "workspace:*",
|
|
50
|
+
"@modelcontextprotocol/inspector": "^0.16.6",
|
|
51
|
+
"@modelcontextprotocol/sdk": "^1.11.4",
|
|
52
|
+
"@swc/core": "^1.11.24",
|
|
53
|
+
"@types/express": "^5.0.1",
|
|
54
|
+
"@types/webpack-node-externals": "^3.0.4",
|
|
55
|
+
"@vercel/mcp-adapter": "^0.11.1",
|
|
56
|
+
"axios": "^1.12.0",
|
|
57
|
+
"chalk": "^5.2.0",
|
|
58
|
+
"chokidar": "^3.6.0",
|
|
59
|
+
"clean-webpack-plugin": "^4.0.0",
|
|
60
|
+
"commander": "^10.0.0",
|
|
61
|
+
"content-type": "^1.0.5",
|
|
62
|
+
"cross-env": "^7.0.3",
|
|
63
|
+
"del": "^7.0.0",
|
|
64
|
+
"dotenv": "^16.5.0",
|
|
65
|
+
"esbuild": "^0.25.0",
|
|
66
|
+
"execa": "^9.6.0",
|
|
67
|
+
"express": "^4.18.0",
|
|
68
|
+
"fork-ts-checker-webpack-plugin": "^8.0.0",
|
|
69
|
+
"fs-extra": "^11.3.0",
|
|
70
|
+
"glob": "^11.0.2",
|
|
71
|
+
"handlebars": "^4.7.7",
|
|
72
|
+
"jose": "^5.2.0",
|
|
73
|
+
"json5": "^2.2.3",
|
|
74
|
+
"jsonwebtoken": "^9.0.2",
|
|
75
|
+
"memfs": "^4.17.2",
|
|
76
|
+
"raw-body": "^3.0.0",
|
|
77
|
+
"swc-loader": "^0.2.6",
|
|
78
|
+
"tsx": "^4.19.4",
|
|
79
|
+
"webpack": "^5.99.7",
|
|
80
|
+
"webpack-node-externals": "^3.0.0",
|
|
81
|
+
"webpack-virtual-modules": "^0.5.0"
|
|
29
82
|
},
|
|
30
83
|
"devDependencies": {
|
|
84
|
+
"@aws-sdk/client-dynamodb": "^3.0.0",
|
|
85
|
+
"@types/content-type": "^1.1.9",
|
|
86
|
+
"@types/fs-extra": "^11.0.4",
|
|
87
|
+
"@types/jsonwebtoken": "^9.0.9",
|
|
31
88
|
"@types/node": "^20.0.0",
|
|
32
|
-
"typescript": "^
|
|
33
|
-
"
|
|
34
|
-
"
|
|
89
|
+
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
|
90
|
+
"@typescript-eslint/parser": "^6.0.0",
|
|
91
|
+
"copy-webpack-plugin": "^12.0.2",
|
|
92
|
+
"eslint": "^8.0.0",
|
|
93
|
+
"node-loader": "^1.0.1",
|
|
94
|
+
"redis": "^4.0.0",
|
|
95
|
+
"ts-loader": "^9.4.2",
|
|
96
|
+
"typescript": "^5.3.0",
|
|
97
|
+
"vitest": "^1.0.0",
|
|
98
|
+
"zod": "^3.22.4"
|
|
35
99
|
},
|
|
36
100
|
"engines": {
|
|
37
|
-
"node": ">=
|
|
38
|
-
}
|
|
39
|
-
|
|
101
|
+
"node": ">=20.0.0"
|
|
102
|
+
},
|
|
103
|
+
"peerDependencies": {
|
|
104
|
+
"swc-loader": "^0.2.6",
|
|
105
|
+
"zod": "^3.22.4"
|
|
106
|
+
},
|
|
107
|
+
"author": "MCP-I Team",
|
|
108
|
+
"license": "MIT",
|
|
109
|
+
"repository": {
|
|
110
|
+
"type": "git",
|
|
111
|
+
"url": "git+https://github.com/modelcontextprotocol-identity/mcp-i.git"
|
|
112
|
+
},
|
|
113
|
+
"bugs": {
|
|
114
|
+
"url": "https://github.com/modelcontextprotocol-identity/mcp-i/issues"
|
|
115
|
+
},
|
|
116
|
+
"homepage": "https://github.com/modelcontextprotocol-identity/mcp-i#readme"
|
|
117
|
+
}
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAQH,UAAU,kBAAkB;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AA0BD,qBAAa,WAAW;IACtB,SAAgB,GAAG,EAAE,MAAM,CAAC;IAC5B,SAAgB,SAAS,EAAE,MAAM,CAAC;IAClC,OAAO,CAAC,UAAU,CAAS;IAE3B,OAAO;IAMP;;;;;;;;OAQG;WACU,IAAI,CAAC,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,WAAW,CAAC;IAoCrE;;OAEG;IACG,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAK5C;;OAEG;IACH,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