@taptap/instant-games-open-mcp 1.20.5 → 1.21.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 CHANGED
@@ -103,6 +103,7 @@ npx @taptap/instant-games-open-mcp
103
103
  - **路径处理**:设置 `TAPTAP_MCP_WORKSPACE_ROOT` 环境变量可以正确解析相对路径(推荐)
104
104
  - 如果不设置,相对路径会基于用户 HOME 目录(可能不符合预期)
105
105
  - 建议使用绝对路径,或配置 `TAPTAP_MCP_WORKSPACE_ROOT`
106
+ - **Windows 启动报 `Received protocol 'c:'`**:这是旧版本 Windows ESM 动态导入路径兼容问题,请升级到包含该修复的最新版本。
106
107
 
107
108
  #### OpenHands(推荐 SSE 模式)
108
109
 
@@ -9,7 +9,7 @@
9
9
 
10
10
  import { join, dirname } from 'node:path';
11
11
  import { existsSync, readdirSync } from 'node:fs';
12
- import { fileURLToPath } from 'node:url';
12
+ import { fileURLToPath, pathToFileURL } from 'node:url';
13
13
 
14
14
  // Get current directory in ESM
15
15
  const __filename = fileURLToPath(import.meta.url);
@@ -20,6 +20,7 @@ const packageRoot = join(__dirname, '..');
20
20
 
21
21
  // Check if compiled version exists
22
22
  const distPath = join(packageRoot, 'dist', 'server.js');
23
+ const distUrl = pathToFileURL(distPath).href;
23
24
  const nativePath = join(packageRoot, 'dist', 'native');
24
25
 
25
26
  if (!existsSync(distPath)) {
@@ -52,7 +53,7 @@ if (!existsSync(nativePath)) {
52
53
  }
53
54
 
54
55
  // Start server
55
- import(distPath).catch(error => {
56
+ import(distUrl).catch(error => {
56
57
  console.error('');
57
58
  console.error('❌ Failed to start server:', error.message);
58
59
  console.error('');
@@ -9,7 +9,7 @@
9
9
 
10
10
  import { join, dirname } from 'node:path';
11
11
  import { existsSync } from 'node:fs';
12
- import { fileURLToPath } from 'node:url';
12
+ import { fileURLToPath, pathToFileURL } from 'node:url';
13
13
 
14
14
  // Get current directory in ESM
15
15
  const __filename = fileURLToPath(import.meta.url);
@@ -20,10 +20,11 @@ const packageRoot = join(__dirname, '..');
20
20
 
21
21
  // Check if bundled version exists
22
22
  const distPath = join(packageRoot, 'dist', 'proxy.js');
23
+ const distUrl = pathToFileURL(distPath).href;
23
24
 
24
25
  if (existsSync(distPath)) {
25
26
  // Use dynamic import for ES Module
26
- import(distPath).catch(error => {
27
+ import(distUrl).catch(error => {
27
28
  console.error('❌ Failed to start MCP Proxy:', error);
28
29
  process.exit(1);
29
30
  });
package/dist/proxy.js CHANGED
@@ -29137,7 +29137,7 @@ var LogWriter = class {
29137
29137
  };
29138
29138
 
29139
29139
  // src/mcp-proxy/proxy.ts
29140
- var VERSION = true ? "1.20.5" : "dev";
29140
+ var VERSION = true ? "1.21.1" : "dev";
29141
29141
  var TapTapMCPProxy = class {
29142
29142
  constructor(config2) {
29143
29143
  this.connected = false;