fix: env and __CONTENT_INDEX

This commit is contained in:
2026-03-18 11:31:13 +08:00
parent 7b68504b1e
commit eecf429a20
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ export const mcpCommand = new Command('mcp')
.description('启动 MCP 服务器')
.argument('[host]', '服务器地址', 'stdio')
.option('-p, --port <port>', 'HTTP 端口(仅 HTTP 传输)', '3001')
.option('--cwd <dir>', '工作目录(工具调用的相对路径基准)', process.cwd())
.option('--cwd <dir>', '工作目录(工具调用的相对路径基准)', process.env.TTRPG_MCP_CWD || process.cwd())
.action(mcpServeAction)
)
.addCommand(