leanmcp 0.3.1 → 0.3.3
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 +36 -9
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +7 -5
- package/dist/index.mjs +9 -7
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,6 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img
|
|
3
|
+
src="https://raw.githubusercontent.com/LeanMCP/leanmcp-sdk/refs/heads/main/assets/logo.png"
|
|
4
|
+
alt="LeanMCP Logo"
|
|
5
|
+
width="400"
|
|
6
|
+
/>
|
|
7
|
+
</p>
|
|
8
|
+
|
|
9
|
+
<p align="center">
|
|
10
|
+
<strong>leanmcp</strong><br/>
|
|
11
|
+
TypeScript SDK for building Model Context Protocol (MCP) servers.
|
|
12
|
+
</p>
|
|
13
|
+
|
|
14
|
+
<p align="center">
|
|
15
|
+
<a href="https://www.npmjs.com/package/leanmcp">
|
|
16
|
+
<img src="https://img.shields.io/npm/v/leanmcp" alt="npm version" />
|
|
17
|
+
</a>
|
|
18
|
+
<a href="https://www.npmjs.com/package/leanmcp">
|
|
19
|
+
<img src="https://img.shields.io/npm/dm/leanmcp" alt="npm downloads" />
|
|
20
|
+
</a>
|
|
21
|
+
<a href="https://docs.leanmcp.com">
|
|
22
|
+
<img src="https://img.shields.io/badge/Docs-leanmcp-0A66C2?" />
|
|
23
|
+
</a>
|
|
24
|
+
<a href="https://discord.com/invite/DsRcA3GwPy">
|
|
25
|
+
<img src="https://img.shields.io/badge/Discord-Join-5865F2?logo=discord&logoColor=white" />
|
|
26
|
+
</a>
|
|
27
|
+
<a href="https://x.com/LeanMcp">
|
|
28
|
+
<img src="https://img.shields.io/badge/@LeanMCP-f5f5f5?logo=x&logoColor=000000" />
|
|
29
|
+
</a>
|
|
30
|
+
</p>
|
|
4
31
|
|
|
5
32
|
## Installation
|
|
6
33
|
|
|
@@ -9,12 +36,12 @@ npm install leanmcp
|
|
|
9
36
|
```
|
|
10
37
|
|
|
11
38
|
This meta-package includes all LeanMCP packages:
|
|
12
|
-
- `@leanmcp/core`
|
|
13
|
-
- `@leanmcp/auth`
|
|
14
|
-
- `@leanmcp/ui` - React
|
|
15
|
-
- `@leanmcp/utils`
|
|
16
|
-
- `@leanmcp/elicitation`
|
|
17
|
-
- `@leanmcp/env-injection` -
|
|
39
|
+
- `@leanmcp/core` — Core decorators (`@Tool`, `@Prompt`, `@Resource`) and HTTP server
|
|
40
|
+
- `@leanmcp/auth` — Authentication with Cognito, Clerk, Auth0, LeanMCP providers
|
|
41
|
+
- `@leanmcp/ui` — MCP-native React components, hooks, and `@UIApp`/`@GPTApp` decorators
|
|
42
|
+
- `@leanmcp/utils` — Utility functions (retry, formatting, async helpers)
|
|
43
|
+
- `@leanmcp/elicitation` — Structured user input collection with `@Elicitation`
|
|
44
|
+
- `@leanmcp/env-injection` — Request-scoped environment variables with `@RequireEnv`
|
|
18
45
|
|
|
19
46
|
## Quick Start
|
|
20
47
|
|
package/dist/index.d.mts
CHANGED
|
@@ -3,7 +3,7 @@ export { MCPServer, MCPServerConstructorOptions, Optional, Prompt, Resource, Sch
|
|
|
3
3
|
export * from '@leanmcp/auth';
|
|
4
4
|
export { AuthProvider, AuthProviderBase, Authenticated, AuthenticatedOptions } from '@leanmcp/auth';
|
|
5
5
|
export * from '@leanmcp/ui';
|
|
6
|
-
export { ActionButton, AppProvider, AppProviderProps, AppShell, AppShellProps, Button, Card, CardContent, CardFooter, CardHeader, Chart, CodeBlock, DataGrid,
|
|
6
|
+
export { ActionButton, AppProvider, AppProviderProps, AppShell, AppShellProps, Button, Card, CardContent, CardFooter, CardHeader, Chart, CodeBlock, DataGrid, Input, ToolForm, UIApp, UIAppOptions, getUIAppMetadata, getUIAppUri, useMcpApp, useTool } from '@leanmcp/ui';
|
|
7
7
|
export * from '@leanmcp/utils';
|
|
8
8
|
export * from '@leanmcp/elicitation';
|
|
9
9
|
export * from '@leanmcp/env-injection';
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export { MCPServer, MCPServerConstructorOptions, Optional, Prompt, Resource, Sch
|
|
|
3
3
|
export * from '@leanmcp/auth';
|
|
4
4
|
export { AuthProvider, AuthProviderBase, Authenticated, AuthenticatedOptions } from '@leanmcp/auth';
|
|
5
5
|
export * from '@leanmcp/ui';
|
|
6
|
-
export { ActionButton, AppProvider, AppProviderProps, AppShell, AppShellProps, Button, Card, CardContent, CardFooter, CardHeader, Chart, CodeBlock, DataGrid,
|
|
6
|
+
export { ActionButton, AppProvider, AppProviderProps, AppShell, AppShellProps, Button, Card, CardContent, CardFooter, CardHeader, Chart, CodeBlock, DataGrid, Input, ToolForm, UIApp, UIAppOptions, getUIAppMetadata, getUIAppUri, useMcpApp, useTool } from '@leanmcp/ui';
|
|
7
7
|
export * from '@leanmcp/utils';
|
|
8
8
|
export * from '@leanmcp/elicitation';
|
|
9
9
|
export * from '@leanmcp/env-injection';
|
package/dist/index.js
CHANGED
|
@@ -35,7 +35,6 @@ __export(index_exports, {
|
|
|
35
35
|
Chart: () => import_ui.Chart,
|
|
36
36
|
CodeBlock: () => import_ui.CodeBlock,
|
|
37
37
|
DataGrid: () => import_ui.DataGrid,
|
|
38
|
-
HTTPTransport: () => import_ui.HTTPTransport,
|
|
39
38
|
Input: () => import_ui.Input,
|
|
40
39
|
MCPServer: () => import_core.MCPServer,
|
|
41
40
|
Optional: () => import_core.Optional,
|
|
@@ -44,10 +43,12 @@ __export(index_exports, {
|
|
|
44
43
|
SchemaConstraint: () => import_core.SchemaConstraint,
|
|
45
44
|
Tool: () => import_core.Tool,
|
|
46
45
|
ToolForm: () => import_ui.ToolForm,
|
|
46
|
+
UIApp: () => import_ui.UIApp,
|
|
47
47
|
createHTTPServer: () => import_core.createHTTPServer,
|
|
48
|
+
getUIAppMetadata: () => import_ui.getUIAppMetadata,
|
|
49
|
+
getUIAppUri: () => import_ui.getUIAppUri,
|
|
48
50
|
useMcpApp: () => import_ui.useMcpApp,
|
|
49
|
-
useTool: () => import_ui.useTool
|
|
50
|
-
useToolSubscription: () => import_ui.useToolSubscription
|
|
51
|
+
useTool: () => import_ui.useTool
|
|
51
52
|
});
|
|
52
53
|
module.exports = __toCommonJS(index_exports);
|
|
53
54
|
__reExport(index_exports, require("@leanmcp/core"), module.exports);
|
|
@@ -75,7 +76,6 @@ __reExport(index_exports, require("@leanmcp/env-injection"), module.exports);
|
|
|
75
76
|
Chart,
|
|
76
77
|
CodeBlock,
|
|
77
78
|
DataGrid,
|
|
78
|
-
HTTPTransport,
|
|
79
79
|
Input,
|
|
80
80
|
MCPServer,
|
|
81
81
|
Optional,
|
|
@@ -84,10 +84,12 @@ __reExport(index_exports, require("@leanmcp/env-injection"), module.exports);
|
|
|
84
84
|
SchemaConstraint,
|
|
85
85
|
Tool,
|
|
86
86
|
ToolForm,
|
|
87
|
+
UIApp,
|
|
87
88
|
createHTTPServer,
|
|
89
|
+
getUIAppMetadata,
|
|
90
|
+
getUIAppUri,
|
|
88
91
|
useMcpApp,
|
|
89
92
|
useTool,
|
|
90
|
-
useToolSubscription,
|
|
91
93
|
...require("@leanmcp/core"),
|
|
92
94
|
...require("@leanmcp/auth"),
|
|
93
95
|
...require("@leanmcp/ui"),
|
package/dist/index.mjs
CHANGED
|
@@ -15,10 +15,7 @@ export * from "@leanmcp/ui";
|
|
|
15
15
|
import {
|
|
16
16
|
AppProvider,
|
|
17
17
|
useMcpApp,
|
|
18
|
-
AppShell,
|
|
19
|
-
HTTPTransport,
|
|
20
18
|
useTool,
|
|
21
|
-
useToolSubscription,
|
|
22
19
|
ActionButton,
|
|
23
20
|
ToolForm,
|
|
24
21
|
Button,
|
|
@@ -29,7 +26,11 @@ import {
|
|
|
29
26
|
Input,
|
|
30
27
|
DataGrid,
|
|
31
28
|
Chart,
|
|
32
|
-
CodeBlock
|
|
29
|
+
CodeBlock,
|
|
30
|
+
AppShell,
|
|
31
|
+
UIApp,
|
|
32
|
+
getUIAppMetadata,
|
|
33
|
+
getUIAppUri
|
|
33
34
|
} from "@leanmcp/ui";
|
|
34
35
|
export * from "@leanmcp/utils";
|
|
35
36
|
export * from "@leanmcp/elicitation";
|
|
@@ -49,7 +50,6 @@ export {
|
|
|
49
50
|
Chart,
|
|
50
51
|
CodeBlock,
|
|
51
52
|
DataGrid,
|
|
52
|
-
HTTPTransport,
|
|
53
53
|
Input,
|
|
54
54
|
MCPServer,
|
|
55
55
|
Optional,
|
|
@@ -58,8 +58,10 @@ export {
|
|
|
58
58
|
SchemaConstraint,
|
|
59
59
|
Tool,
|
|
60
60
|
ToolForm,
|
|
61
|
+
UIApp,
|
|
61
62
|
createHTTPServer,
|
|
63
|
+
getUIAppMetadata,
|
|
64
|
+
getUIAppUri,
|
|
62
65
|
useMcpApp,
|
|
63
|
-
useTool
|
|
64
|
-
useToolSubscription
|
|
66
|
+
useTool
|
|
65
67
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "leanmcp",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "LeanMCP SDK - TypeScript SDK for building Model Context Protocol (MCP) servers with type-safe decorators",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -66,4 +66,4 @@
|
|
|
66
66
|
"publishConfig": {
|
|
67
67
|
"access": "public"
|
|
68
68
|
}
|
|
69
|
-
}
|
|
69
|
+
}
|