@yoreland/lark-cli-mcp 1.0.0 → 1.0.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/README.md +2 -2
- package/bin/cli.mjs +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -87,7 +87,7 @@ The workshop host creates **one** Feishu custom app and configures it so attende
|
|
|
87
87
|
|
|
88
88
|
1. [Feishu Open Platform](https://open.feishu.cn) → create an internal custom app → note **App ID / App Secret**.
|
|
89
89
|
2. Enable **User token scopes** matching the `im`, `contact`, `search` domains (message read/write, reply, chat read, user search, message search).
|
|
90
|
-
3. Distribute the App ID/Secret to attendees via `lark-cli config` (or a pre-bound config). The login step requests scopes via `--domain im,contact
|
|
90
|
+
3. Distribute the App ID/Secret to attendees via `lark-cli config` (or a pre-bound config). The login step requests scopes via `--domain im,contact`.
|
|
91
91
|
|
|
92
92
|
`auth` uses **OAuth Device Flow**, so no `redirect URL` / `localhost:3000` callback configuration is required.
|
|
93
93
|
|
|
@@ -97,7 +97,7 @@ The workshop host creates **one** Feishu custom app and configures it so attende
|
|
|
97
97
|
|
|
98
98
|
**`missing required scope(s)`** — re-login with the needed domain:
|
|
99
99
|
```bash
|
|
100
|
-
npx -y @yoreland/lark-cli-mcp auth --domain im,contact
|
|
100
|
+
npx -y @yoreland/lark-cli-mcp auth --domain im,contact
|
|
101
101
|
```
|
|
102
102
|
|
|
103
103
|
**Client shows "No tools loaded"** — run `npx -y @yoreland/lark-cli-mcp doctor`; confirm Node ≥18 and that `auth status` is OK.
|
package/bin/cli.mjs
CHANGED
|
@@ -20,9 +20,9 @@ import { fileURLToPath } from "node:url";
|
|
|
20
20
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
21
21
|
|
|
22
22
|
// Default scopes for a Feishu messaging workshop (user identity).
|
|
23
|
-
// `im` domain covers send/read/reply; `contact` for user search
|
|
24
|
-
// `search`
|
|
25
|
-
const DEFAULT_DOMAINS = "im,contact
|
|
23
|
+
// `im` domain covers send/read/reply/search; `contact` for user search.
|
|
24
|
+
// NOTE: there is no `search` domain in lark-cli; message search lives under `im`.
|
|
25
|
+
const DEFAULT_DOMAINS = "im,contact";
|
|
26
26
|
|
|
27
27
|
function resolveLarkCli() {
|
|
28
28
|
if (process.env.LARK_CLI_BIN && existsSync(process.env.LARK_CLI_BIN)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yoreland/lark-cli-mcp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "MCP server that wraps lark-cli to operate Feishu/Lark as your own user identity (send/read/reply/search messages). Designed for one-line npx launch.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|