@lessie/mcp-server 0.1.0 → 0.1.1
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/cli.js +2 -0
- package/dist/index.js +0 -0
- package/package.json +2 -2
- package/mcpb/.mcpbignore +0 -4
- package/mcpb/README.md +0 -47
- package/mcpb/lessie-mcp-20260320-221003.mcpb +0 -0
- package/mcpb/lessie-mcp-20260320-232505.mcpb +0 -0
- package/mcpb/lessie-mcp-20260320-232558.mcpb +0 -0
- package/mcpb/manifest.json +0 -45
- package/mcpb/pack.sh +0 -36
package/dist/cli.js
ADDED
package/dist/index.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
package/mcpb/.mcpbignore
DELETED
package/mcpb/README.md
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
# MCPB 打包
|
|
2
|
-
|
|
3
|
-
将 Lessie MCP Server 打包为 `.mcpb` 文件,供 Claude Desktop 用户一键安装。
|
|
4
|
-
|
|
5
|
-
## 打包
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
# 在项目根目录执行
|
|
9
|
-
npm run build
|
|
10
|
-
npm run mcpb:pack
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
生成的 `.mcpb` 文件在当前目录下。
|
|
14
|
-
|
|
15
|
-
## 安装方式
|
|
16
|
-
|
|
17
|
-
用户拿到 `.mcpb` 文件后:
|
|
18
|
-
|
|
19
|
-
- **双击**文件自动打开 Claude Desktop
|
|
20
|
-
- **拖拽**到 Claude Desktop 窗口
|
|
21
|
-
- Claude Desktop 菜单:Developer → Extensions → Install Extension
|
|
22
|
-
|
|
23
|
-
## manifest.json 说明
|
|
24
|
-
|
|
25
|
-
| 字段 | 说明 |
|
|
26
|
-
|---|---|
|
|
27
|
-
| `server.type` | `node` — Claude Desktop 自带 Node.js 运行时,用户无需额外安装 |
|
|
28
|
-
| `server.entry_point` | 指向编译产物 `dist/index.js` |
|
|
29
|
-
| `tools` | 声明本地工具(`authorize`) |
|
|
30
|
-
| `tools_generated` | `true` — 授权后会动态暴露远程工具 |
|
|
31
|
-
| `user_config` | 安装时 Claude Desktop 自动弹出配置界面,用户可自定义远程服务地址 |
|
|
32
|
-
|
|
33
|
-
## 添加图标
|
|
34
|
-
|
|
35
|
-
准备一个 512×512 的 `icon.png` 放到本目录,然后在 `manifest.json` 中添加:
|
|
36
|
-
|
|
37
|
-
```json
|
|
38
|
-
"icons": {
|
|
39
|
-
"default": "icon.png"
|
|
40
|
-
}
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
## 参考
|
|
44
|
-
|
|
45
|
-
- [MCPB 规范](https://github.com/modelcontextprotocol/mcpb)
|
|
46
|
-
- [Manifest 字段说明](https://github.com/modelcontextprotocol/mcpb/blob/main/MANIFEST.md)
|
|
47
|
-
- [提交到 Anthropic Directory](https://support.claude.com/en/articles/12922832-local-mcp-server-submission-guide)
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/mcpb/manifest.json
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"manifest_version": "0.3",
|
|
3
|
-
"name": "lessie-mcp-server",
|
|
4
|
-
"display_name": "Lessie",
|
|
5
|
-
"version": "0.0.8",
|
|
6
|
-
"description": "Connect Claude to your Lessie account. Authorize via OAuth and access remote Lessie tools directly in conversations.",
|
|
7
|
-
"author": {
|
|
8
|
-
"name": "Lessie"
|
|
9
|
-
},
|
|
10
|
-
"server": {
|
|
11
|
-
"type": "node",
|
|
12
|
-
"entry_point": "dist/index.js",
|
|
13
|
-
"mcp_config": {
|
|
14
|
-
"command": "node",
|
|
15
|
-
"args": ["${__dirname}/dist/index.js"],
|
|
16
|
-
"env": {
|
|
17
|
-
"LESSIE_REMOTE_MCP_URL": "${user_config.remote_mcp_url}"
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
"tools": [
|
|
22
|
-
{
|
|
23
|
-
"name": "authorize",
|
|
24
|
-
"description": "Connect to the remote Lessie service. Returns an authorization link on first use or when authorization expires; returns current status when already connected."
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"name": "use_lessie",
|
|
28
|
-
"description": "Call any remote Lessie tool. Omit the 'tool' parameter to list all available remote tools with their schemas; provide 'tool' and 'arguments' to invoke a specific tool. Requires prior authorization via the 'authorize' tool."
|
|
29
|
-
}
|
|
30
|
-
],
|
|
31
|
-
"tools_generated": true,
|
|
32
|
-
"user_config": {
|
|
33
|
-
"remote_mcp_url": {
|
|
34
|
-
"type": "string",
|
|
35
|
-
"title": "Remote MCP Server URL",
|
|
36
|
-
"description": "The URL of the remote Lessie MCP server",
|
|
37
|
-
"required": false,
|
|
38
|
-
"default": "https://www.lessie.ai/mcp-server/mcp"
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
"compatibility": {
|
|
42
|
-
"platforms": ["darwin", "win32"]
|
|
43
|
-
},
|
|
44
|
-
"license": "MIT"
|
|
45
|
-
}
|
package/mcpb/pack.sh
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
set -euo pipefail
|
|
3
|
-
|
|
4
|
-
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
5
|
-
PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
|
|
6
|
-
|
|
7
|
-
cd "$PROJECT_ROOT"
|
|
8
|
-
|
|
9
|
-
echo "Bundling with esbuild..."
|
|
10
|
-
rm -rf "$SCRIPT_DIR/dist"
|
|
11
|
-
mkdir -p "$SCRIPT_DIR/dist"
|
|
12
|
-
npx esbuild src/index.ts \
|
|
13
|
-
--bundle \
|
|
14
|
-
--platform=node \
|
|
15
|
-
--format=esm \
|
|
16
|
-
--target=node18 \
|
|
17
|
-
--outfile="$SCRIPT_DIR/dist/index.js" \
|
|
18
|
-
--banner:js='#!/usr/bin/env node'
|
|
19
|
-
|
|
20
|
-
echo "Copying runtime assets..."
|
|
21
|
-
cp package.json "$SCRIPT_DIR/package.json"
|
|
22
|
-
cp SKILL.md "$SCRIPT_DIR/SKILL.md" 2>/dev/null || true
|
|
23
|
-
|
|
24
|
-
echo "Packing mcpb..."
|
|
25
|
-
cd "$SCRIPT_DIR"
|
|
26
|
-
TIMESTAMP="$(date +%Y%m%d-%H%M%S)"
|
|
27
|
-
OUTPUT="lessie-mcp-${TIMESTAMP}.mcpb"
|
|
28
|
-
npx @anthropic-ai/mcpb pack . "$OUTPUT"
|
|
29
|
-
|
|
30
|
-
echo "Cleaning up..."
|
|
31
|
-
rm -rf "$SCRIPT_DIR/dist"
|
|
32
|
-
rm -f "$SCRIPT_DIR/package.json"
|
|
33
|
-
rm -f "$SCRIPT_DIR/SKILL.md"
|
|
34
|
-
rm -f "$SCRIPT_DIR/lessie-mcp-server-"*.mcpb
|
|
35
|
-
|
|
36
|
-
echo "Done! Output: $SCRIPT_DIR/$OUTPUT"
|