@leanmcp/core 0.3.15 → 0.3.16
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 -21
- package/README.md +474 -474
- package/dist/index.d.mts +17 -7
- package/dist/index.d.ts +17 -7
- package/package.json +77 -77
- package/dist/chunk-LPEX4YW6.mjs +0 -13
- package/dist/server-BEQUIEE2.mjs +0 -25808
package/dist/index.d.mts
CHANGED
|
@@ -101,7 +101,7 @@ interface HTTPServerAuthOptions {
|
|
|
101
101
|
issuer?: string;
|
|
102
102
|
/** Access token TTL in seconds (default: 3600) */
|
|
103
103
|
tokenTTL?: number;
|
|
104
|
-
/** Enable Dynamic Client Registration (
|
|
104
|
+
/** Enable Dynamic Client Registration (DCR) */
|
|
105
105
|
enableDCR?: boolean;
|
|
106
106
|
/** Upstream OAuth provider configuration */
|
|
107
107
|
upstreamProvider?: {
|
|
@@ -551,8 +551,6 @@ interface MCPServerConstructorOptions {
|
|
|
551
551
|
};
|
|
552
552
|
sessionTimeout?: number;
|
|
553
553
|
stateless?: boolean;
|
|
554
|
-
dashboard?: boolean;
|
|
555
|
-
/** OAuth/Auth configuration (MCP authorization spec) - passed to HTTPServerOptions */
|
|
556
554
|
auth?: HTTPServerAuthOptions;
|
|
557
555
|
}
|
|
558
556
|
interface RegisteredTool {
|
|
@@ -673,10 +671,16 @@ declare class MCPServer {
|
|
|
673
671
|
method: string;
|
|
674
672
|
params?: {
|
|
675
673
|
[x: string]: unknown;
|
|
674
|
+
task?: {
|
|
675
|
+
[x: string]: unknown;
|
|
676
|
+
ttl?: number | null | undefined;
|
|
677
|
+
pollInterval?: number | undefined;
|
|
678
|
+
} | undefined;
|
|
676
679
|
_meta?: {
|
|
677
680
|
[x: string]: unknown;
|
|
678
681
|
progressToken?: string | number | undefined;
|
|
679
682
|
"io.modelcontextprotocol/related-task"?: {
|
|
683
|
+
[x: string]: unknown;
|
|
680
684
|
taskId: string;
|
|
681
685
|
} | undefined;
|
|
682
686
|
} | undefined;
|
|
@@ -687,8 +691,8 @@ declare class MCPServer {
|
|
|
687
691
|
[x: string]: unknown;
|
|
688
692
|
_meta?: {
|
|
689
693
|
[x: string]: unknown;
|
|
690
|
-
progressToken?: string | number | undefined;
|
|
691
694
|
"io.modelcontextprotocol/related-task"?: {
|
|
695
|
+
[x: string]: unknown;
|
|
692
696
|
taskId: string;
|
|
693
697
|
} | undefined;
|
|
694
698
|
} | undefined;
|
|
@@ -697,8 +701,8 @@ declare class MCPServer {
|
|
|
697
701
|
[x: string]: unknown;
|
|
698
702
|
_meta?: {
|
|
699
703
|
[x: string]: unknown;
|
|
700
|
-
progressToken?: string | number | undefined;
|
|
701
704
|
"io.modelcontextprotocol/related-task"?: {
|
|
705
|
+
[x: string]: unknown;
|
|
702
706
|
taskId: string;
|
|
703
707
|
} | undefined;
|
|
704
708
|
} | undefined;
|
|
@@ -728,10 +732,16 @@ declare class MCPServerRuntime {
|
|
|
728
732
|
method: string;
|
|
729
733
|
params?: {
|
|
730
734
|
[x: string]: unknown;
|
|
735
|
+
task?: {
|
|
736
|
+
[x: string]: unknown;
|
|
737
|
+
ttl?: number | null | undefined;
|
|
738
|
+
pollInterval?: number | undefined;
|
|
739
|
+
} | undefined;
|
|
731
740
|
_meta?: {
|
|
732
741
|
[x: string]: unknown;
|
|
733
742
|
progressToken?: string | number | undefined;
|
|
734
743
|
"io.modelcontextprotocol/related-task"?: {
|
|
744
|
+
[x: string]: unknown;
|
|
735
745
|
taskId: string;
|
|
736
746
|
} | undefined;
|
|
737
747
|
} | undefined;
|
|
@@ -742,8 +752,8 @@ declare class MCPServerRuntime {
|
|
|
742
752
|
[x: string]: unknown;
|
|
743
753
|
_meta?: {
|
|
744
754
|
[x: string]: unknown;
|
|
745
|
-
progressToken?: string | number | undefined;
|
|
746
755
|
"io.modelcontextprotocol/related-task"?: {
|
|
756
|
+
[x: string]: unknown;
|
|
747
757
|
taskId: string;
|
|
748
758
|
} | undefined;
|
|
749
759
|
} | undefined;
|
|
@@ -752,8 +762,8 @@ declare class MCPServerRuntime {
|
|
|
752
762
|
[x: string]: unknown;
|
|
753
763
|
_meta?: {
|
|
754
764
|
[x: string]: unknown;
|
|
755
|
-
progressToken?: string | number | undefined;
|
|
756
765
|
"io.modelcontextprotocol/related-task"?: {
|
|
766
|
+
[x: string]: unknown;
|
|
757
767
|
taskId: string;
|
|
758
768
|
} | undefined;
|
|
759
769
|
} | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -101,7 +101,7 @@ interface HTTPServerAuthOptions {
|
|
|
101
101
|
issuer?: string;
|
|
102
102
|
/** Access token TTL in seconds (default: 3600) */
|
|
103
103
|
tokenTTL?: number;
|
|
104
|
-
/** Enable Dynamic Client Registration (
|
|
104
|
+
/** Enable Dynamic Client Registration (DCR) */
|
|
105
105
|
enableDCR?: boolean;
|
|
106
106
|
/** Upstream OAuth provider configuration */
|
|
107
107
|
upstreamProvider?: {
|
|
@@ -551,8 +551,6 @@ interface MCPServerConstructorOptions {
|
|
|
551
551
|
};
|
|
552
552
|
sessionTimeout?: number;
|
|
553
553
|
stateless?: boolean;
|
|
554
|
-
dashboard?: boolean;
|
|
555
|
-
/** OAuth/Auth configuration (MCP authorization spec) - passed to HTTPServerOptions */
|
|
556
554
|
auth?: HTTPServerAuthOptions;
|
|
557
555
|
}
|
|
558
556
|
interface RegisteredTool {
|
|
@@ -673,10 +671,16 @@ declare class MCPServer {
|
|
|
673
671
|
method: string;
|
|
674
672
|
params?: {
|
|
675
673
|
[x: string]: unknown;
|
|
674
|
+
task?: {
|
|
675
|
+
[x: string]: unknown;
|
|
676
|
+
ttl?: number | null | undefined;
|
|
677
|
+
pollInterval?: number | undefined;
|
|
678
|
+
} | undefined;
|
|
676
679
|
_meta?: {
|
|
677
680
|
[x: string]: unknown;
|
|
678
681
|
progressToken?: string | number | undefined;
|
|
679
682
|
"io.modelcontextprotocol/related-task"?: {
|
|
683
|
+
[x: string]: unknown;
|
|
680
684
|
taskId: string;
|
|
681
685
|
} | undefined;
|
|
682
686
|
} | undefined;
|
|
@@ -687,8 +691,8 @@ declare class MCPServer {
|
|
|
687
691
|
[x: string]: unknown;
|
|
688
692
|
_meta?: {
|
|
689
693
|
[x: string]: unknown;
|
|
690
|
-
progressToken?: string | number | undefined;
|
|
691
694
|
"io.modelcontextprotocol/related-task"?: {
|
|
695
|
+
[x: string]: unknown;
|
|
692
696
|
taskId: string;
|
|
693
697
|
} | undefined;
|
|
694
698
|
} | undefined;
|
|
@@ -697,8 +701,8 @@ declare class MCPServer {
|
|
|
697
701
|
[x: string]: unknown;
|
|
698
702
|
_meta?: {
|
|
699
703
|
[x: string]: unknown;
|
|
700
|
-
progressToken?: string | number | undefined;
|
|
701
704
|
"io.modelcontextprotocol/related-task"?: {
|
|
705
|
+
[x: string]: unknown;
|
|
702
706
|
taskId: string;
|
|
703
707
|
} | undefined;
|
|
704
708
|
} | undefined;
|
|
@@ -728,10 +732,16 @@ declare class MCPServerRuntime {
|
|
|
728
732
|
method: string;
|
|
729
733
|
params?: {
|
|
730
734
|
[x: string]: unknown;
|
|
735
|
+
task?: {
|
|
736
|
+
[x: string]: unknown;
|
|
737
|
+
ttl?: number | null | undefined;
|
|
738
|
+
pollInterval?: number | undefined;
|
|
739
|
+
} | undefined;
|
|
731
740
|
_meta?: {
|
|
732
741
|
[x: string]: unknown;
|
|
733
742
|
progressToken?: string | number | undefined;
|
|
734
743
|
"io.modelcontextprotocol/related-task"?: {
|
|
744
|
+
[x: string]: unknown;
|
|
735
745
|
taskId: string;
|
|
736
746
|
} | undefined;
|
|
737
747
|
} | undefined;
|
|
@@ -742,8 +752,8 @@ declare class MCPServerRuntime {
|
|
|
742
752
|
[x: string]: unknown;
|
|
743
753
|
_meta?: {
|
|
744
754
|
[x: string]: unknown;
|
|
745
|
-
progressToken?: string | number | undefined;
|
|
746
755
|
"io.modelcontextprotocol/related-task"?: {
|
|
756
|
+
[x: string]: unknown;
|
|
747
757
|
taskId: string;
|
|
748
758
|
} | undefined;
|
|
749
759
|
} | undefined;
|
|
@@ -752,8 +762,8 @@ declare class MCPServerRuntime {
|
|
|
752
762
|
[x: string]: unknown;
|
|
753
763
|
_meta?: {
|
|
754
764
|
[x: string]: unknown;
|
|
755
|
-
progressToken?: string | number | undefined;
|
|
756
765
|
"io.modelcontextprotocol/related-task"?: {
|
|
766
|
+
[x: string]: unknown;
|
|
757
767
|
taskId: string;
|
|
758
768
|
} | undefined;
|
|
759
769
|
} | undefined;
|
package/package.json
CHANGED
|
@@ -1,77 +1,77 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@leanmcp/core",
|
|
3
|
-
"version": "0.3.
|
|
4
|
-
"description": "Core library implementing decorators, reflection, and MCP runtime server",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"module": "dist/index.mjs",
|
|
7
|
-
"types": "dist/index.d.ts",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"types": "./dist/index.d.ts",
|
|
11
|
-
"require": "./dist/index.js",
|
|
12
|
-
"import": "./dist/index.mjs"
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
"files": [
|
|
16
|
-
"dist",
|
|
17
|
-
"README.md",
|
|
18
|
-
"LICENSE"
|
|
19
|
-
],
|
|
20
|
-
"scripts": {
|
|
21
|
-
"build": "tsup src/index.ts --format esm,cjs --dts",
|
|
22
|
-
"dev": "tsup src/index.ts --format esm,cjs --dts --watch",
|
|
23
|
-
"test": "jest --passWithNoTests",
|
|
24
|
-
"test:watch": "jest --watch"
|
|
25
|
-
},
|
|
26
|
-
"dependencies": {
|
|
27
|
-
"@modelcontextprotocol/sdk": "^1.0.0",
|
|
28
|
-
"ajv": "^8.12.0",
|
|
29
|
-
"chokidar": "^4.0.0",
|
|
30
|
-
"dotenv": "^16.3.1",
|
|
31
|
-
"reflect-metadata": "^0.2.1"
|
|
32
|
-
},
|
|
33
|
-
"peerDependencies": {
|
|
34
|
-
"cors": "^2.8.5",
|
|
35
|
-
"express": "^5.0.0",
|
|
36
|
-
"@leanmcp/auth": "^0.4.0"
|
|
37
|
-
},
|
|
38
|
-
"peerDependenciesMeta": {
|
|
39
|
-
"express": {
|
|
40
|
-
"optional": true
|
|
41
|
-
},
|
|
42
|
-
"cors": {
|
|
43
|
-
"optional": true
|
|
44
|
-
},
|
|
45
|
-
"@leanmcp/auth": {
|
|
46
|
-
"optional": true
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
"devDependencies": {
|
|
50
|
-
"@types/cors": "^2.8.0",
|
|
51
|
-
"@types/express": "^5.0.0",
|
|
52
|
-
"@types/node": "^20.0.0",
|
|
53
|
-
"@leanmcp/auth": "^0.4.0"
|
|
54
|
-
},
|
|
55
|
-
"repository": {
|
|
56
|
-
"type": "git",
|
|
57
|
-
"url": "git+https://github.com/LeanMCP/leanmcp-sdk.git",
|
|
58
|
-
"directory": "packages/core"
|
|
59
|
-
},
|
|
60
|
-
"homepage": "https://github.com/LeanMCP/leanmcp-sdk#readme",
|
|
61
|
-
"bugs": {
|
|
62
|
-
"url": "https://github.com/LeanMCP/leanmcp-sdk/issues"
|
|
63
|
-
},
|
|
64
|
-
"keywords": [
|
|
65
|
-
"mcp",
|
|
66
|
-
"model-context-protocol",
|
|
67
|
-
"typescript",
|
|
68
|
-
"decorators",
|
|
69
|
-
"server",
|
|
70
|
-
"runtime"
|
|
71
|
-
],
|
|
72
|
-
"author": "LeanMCP <admin@leanmcp.com>",
|
|
73
|
-
"license": "MIT",
|
|
74
|
-
"publishConfig": {
|
|
75
|
-
"access": "public"
|
|
76
|
-
}
|
|
77
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@leanmcp/core",
|
|
3
|
+
"version": "0.3.16",
|
|
4
|
+
"description": "Core library implementing decorators, reflection, and MCP runtime server",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/index.mjs",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"require": "./dist/index.js",
|
|
12
|
+
"import": "./dist/index.mjs"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist",
|
|
17
|
+
"README.md",
|
|
18
|
+
"LICENSE"
|
|
19
|
+
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "tsup src/index.ts --format esm,cjs --dts",
|
|
22
|
+
"dev": "tsup src/index.ts --format esm,cjs --dts --watch",
|
|
23
|
+
"test": "jest --passWithNoTests",
|
|
24
|
+
"test:watch": "jest --watch"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@modelcontextprotocol/sdk": "^1.0.0",
|
|
28
|
+
"ajv": "^8.12.0",
|
|
29
|
+
"chokidar": "^4.0.0",
|
|
30
|
+
"dotenv": "^16.3.1",
|
|
31
|
+
"reflect-metadata": "^0.2.1"
|
|
32
|
+
},
|
|
33
|
+
"peerDependencies": {
|
|
34
|
+
"cors": "^2.8.5",
|
|
35
|
+
"express": "^5.0.0",
|
|
36
|
+
"@leanmcp/auth": "^0.4.0"
|
|
37
|
+
},
|
|
38
|
+
"peerDependenciesMeta": {
|
|
39
|
+
"express": {
|
|
40
|
+
"optional": true
|
|
41
|
+
},
|
|
42
|
+
"cors": {
|
|
43
|
+
"optional": true
|
|
44
|
+
},
|
|
45
|
+
"@leanmcp/auth": {
|
|
46
|
+
"optional": true
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"@types/cors": "^2.8.0",
|
|
51
|
+
"@types/express": "^5.0.0",
|
|
52
|
+
"@types/node": "^20.0.0",
|
|
53
|
+
"@leanmcp/auth": "^0.4.0"
|
|
54
|
+
},
|
|
55
|
+
"repository": {
|
|
56
|
+
"type": "git",
|
|
57
|
+
"url": "git+https://github.com/LeanMCP/leanmcp-sdk.git",
|
|
58
|
+
"directory": "packages/core"
|
|
59
|
+
},
|
|
60
|
+
"homepage": "https://github.com/LeanMCP/leanmcp-sdk#readme",
|
|
61
|
+
"bugs": {
|
|
62
|
+
"url": "https://github.com/LeanMCP/leanmcp-sdk/issues"
|
|
63
|
+
},
|
|
64
|
+
"keywords": [
|
|
65
|
+
"mcp",
|
|
66
|
+
"model-context-protocol",
|
|
67
|
+
"typescript",
|
|
68
|
+
"decorators",
|
|
69
|
+
"server",
|
|
70
|
+
"runtime"
|
|
71
|
+
],
|
|
72
|
+
"author": "LeanMCP <admin@leanmcp.com>",
|
|
73
|
+
"license": "MIT",
|
|
74
|
+
"publishConfig": {
|
|
75
|
+
"access": "public"
|
|
76
|
+
}
|
|
77
|
+
}
|
package/dist/chunk-LPEX4YW6.mjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
4
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
5
|
-
}) : x)(function(x) {
|
|
6
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
7
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
8
|
-
});
|
|
9
|
-
|
|
10
|
-
export {
|
|
11
|
-
__name,
|
|
12
|
-
__require
|
|
13
|
-
};
|