rote-toolkit 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 CHANGED
@@ -73,14 +73,27 @@ rote mcp
73
73
  rote-mcp
74
74
  ```
75
75
 
76
- ### Claude Desktop 配置示例
76
+ ### Claude Desktop / VS Code 配置示例(推荐)
77
77
 
78
78
  ```json
79
79
  {
80
80
  "mcpServers": {
81
81
  "rote-toolkit": {
82
82
  "command": "npx",
83
- "args": ["-y", "rote-toolkit", "mcp"]
83
+ "args": ["-y", "-p", "rote-toolkit@latest", "rote-mcp"]
84
+ }
85
+ }
86
+ }
87
+ ```
88
+
89
+ 使用 Bun 也可以:
90
+
91
+ ```json
92
+ {
93
+ "mcpServers": {
94
+ "rote-toolkit": {
95
+ "command": "bunx",
96
+ "args": ["-y", "rote-toolkit@latest", "rote-mcp"]
84
97
  }
85
98
  }
86
99
  }
package/dist/cli.js CHANGED
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { Command } from "commander";
3
+ import { readFileSync } from "node:fs";
3
4
  import { createInterface } from "node:readline/promises";
4
5
  import { stdin as input, stdout as output } from "node:process";
5
6
  import { getConfigPath, saveConfig } from "./config.js";
@@ -7,7 +8,9 @@ import { RoteClient } from "./api.js";
7
8
  import { printNotes } from "./output.js";
8
9
  import { startMcpServer } from "./mcp.js";
9
10
  const program = new Command();
10
- program.name("rote").description("Rote Toolkit CLI").version("0.1.0");
11
+ const packageJson = JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf8"));
12
+ const cliVersion = packageJson.version ?? "0.0.0";
13
+ program.name("rote").description("Rote Toolkit CLI").version(cliVersion);
11
14
  program
12
15
  .command("config")
13
16
  .alias("login")
File without changes
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "rote-toolkit",
3
- "version": "0.3.1",
3
+ "version": "0.3.3",
4
4
  "description": "CLI and MCP toolkit for Rote OpenKey API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "bin": {
8
+ "rote-toolkit": "dist/cli.js",
8
9
  "rote": "dist/cli.js",
9
10
  "rote-mcp": "dist/mcp-standalone.js"
10
11
  },