unofficial-ravensburger-playhub-mcp 1.0.1 → 1.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.
package/README.md CHANGED
@@ -31,12 +31,14 @@ The server runs over stdio. Add it as an MCP server in your client (e.g. Cursor)
31
31
 
32
32
  ## Using with Cursor
33
33
 
34
+ Cursor limits the **combined server name + tool name** to 60 characters. Use a **short key** (e.g. `lorcana-event-finder`) in `mcpServers` so tools like `get_tournament_round_standings` don’t get filtered out.
35
+
34
36
  **Option A — npx (easiest):** No clone or build. In **Settings → MCP**, add:
35
37
 
36
38
  ```json
37
39
  {
38
40
  "mcpServers": {
39
- "unofficial-ravensburger-playhub-mcp": {
41
+ "lorcana-event-finder": {
40
42
  "command": "npx",
41
43
  "args": ["-y", "unofficial-ravensburger-playhub-mcp"]
42
44
  }
@@ -49,7 +51,7 @@ The server runs over stdio. Add it as an MCP server in your client (e.g. Cursor)
49
51
  ```json
50
52
  {
51
53
  "mcpServers": {
52
- "unofficial-ravensburger-playhub-mcp": {
54
+ "lorcana-event-finder": {
53
55
  "command": "node",
54
56
  "args": ["/path/to/unofficial-ravensburger-playhub-mcp/dist/index.js"]
55
57
  }
@@ -72,7 +74,7 @@ Add the server to **Claude Desktop** by editing your MCP config file:
72
74
  ```json
73
75
  {
74
76
  "mcpServers": {
75
- "unofficial-ravensburger-playhub-mcp": {
77
+ "lorcana-event-finder": {
76
78
  "command": "npx",
77
79
  "args": ["-y", "unofficial-ravensburger-playhub-mcp"]
78
80
  }
@@ -85,7 +87,7 @@ Add the server to **Claude Desktop** by editing your MCP config file:
85
87
  ```json
86
88
  {
87
89
  "mcpServers": {
88
- "unofficial-ravensburger-playhub-mcp": {
90
+ "lorcana-event-finder": {
89
91
  "command": "node",
90
92
  "args": ["/path/to/unofficial-ravensburger-playhub-mcp/dist/index.js"]
91
93
  }
@@ -127,7 +129,7 @@ Example for `.mcp.json` or `~/.claude.json`:
127
129
  ```json
128
130
  {
129
131
  "mcpServers": {
130
- "unofficial-ravensburger-playhub-mcp": {
132
+ "lorcana-event-finder": {
131
133
  "command": "npx",
132
134
  "args": ["-y", "unofficial-ravensburger-playhub-mcp"]
133
135
  }
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { resolve } from "node:path";
2
+ import { realpathSync } from "node:fs";
3
3
  import { fileURLToPath } from "node:url";
4
4
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
5
5
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
@@ -7,8 +7,19 @@ import { loadFilterOptions } from "./lib/api.js";
7
7
  import { registerEventTools } from "./tools/events.js";
8
8
  import { registerFilterTools } from "./tools/filters.js";
9
9
  import { registerStoreTools } from "./tools/stores.js";
10
- const isEntryModule = process.argv[1] != null &&
11
- resolve(process.argv[1]) === resolve(fileURLToPath(import.meta.url));
10
+ // Resolve symlinks so we detect entry when run via npm/npx bin (which uses a symlink)
11
+ function isEntryModule() {
12
+ if (process.argv[1] == null)
13
+ return false;
14
+ try {
15
+ const argvPath = realpathSync(process.argv[1]);
16
+ const selfPath = realpathSync(fileURLToPath(import.meta.url));
17
+ return argvPath === selfPath;
18
+ }
19
+ catch {
20
+ return false;
21
+ }
22
+ }
12
23
  const server = new McpServer({
13
24
  name: "lorcana-event-finder",
14
25
  version: "1.0.0",
@@ -24,7 +35,7 @@ async function main() {
24
35
  // (Cursor and other clients time out if the server doesn't respond to initialize quickly)
25
36
  loadFilterOptions().catch((err) => console.error("Failed to load filter options:", err));
26
37
  }
27
- if (isEntryModule) {
38
+ if (isEntryModule()) {
28
39
  main().catch((error) => {
29
40
  console.error("Fatal error:", error);
30
41
  process.exit(1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unofficial-ravensburger-playhub-mcp",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "MCP server for finding Disney Lorcana TCG events",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",