@lessie/mcp-server 0.0.1 → 0.0.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.
Files changed (2) hide show
  1. package/dist/index.js +2 -1
  2. package/package.json +4 -1
package/dist/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ #!/usr/bin/env node
1
2
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
3
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
3
4
  // ── 环境变量 ──────────────────────────────────────────────────────────────────
@@ -28,7 +29,7 @@ async function getJwt() {
28
29
  body: JSON.stringify({ apiKey: API_KEY }),
29
30
  });
30
31
  if (!res.ok) {
31
- throw new Error(`Failed to exchange API key for JWT: ${res.status} ${res.statusText}`);
32
+ throw new Error(`Failed to exchange API key for JWT: ${res.status} ${res.statusText} ${BASE_URL}/auth/token`);
32
33
  }
33
34
  const data = (await res.json());
34
35
  jwtCache = {
package/package.json CHANGED
@@ -1,8 +1,11 @@
1
1
  {
2
2
  "name": "@lessie/mcp-server",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
+ "bin": {
7
+ "lessie-mcp-server": "dist/index.js"
8
+ },
6
9
  "scripts": {
7
10
  "build": "tsc",
8
11
  "dev": "tsc --watch",