diff --git a/scripts/start-standalone.sh b/scripts/start-standalone.sh index 0263efe..ab7ea38 100644 --- a/scripts/start-standalone.sh +++ b/scripts/start-standalone.sh @@ -30,4 +30,7 @@ if [[ -d "$SOURCE_PUBLIC_DIR" ]]; then fi cd "$STANDALONE_DIR" +# Next.js standalone server reads HOSTNAME to decide bind address. +# Default to 0.0.0.0 so the server is accessible from outside the host. +export HOSTNAME="${HOSTNAME:-0.0.0.0}" exec node server.js diff --git a/tests/mcp-server.spec.ts b/tests/mcp-server.spec.ts index 0fed81d..0406eee 100644 --- a/tests/mcp-server.spec.ts +++ b/tests/mcp-server.spec.ts @@ -207,7 +207,7 @@ test.describe('MCP Server Integration', () => { test('mc_create_task creates a task', async ({ request }) => { const { content, isError } = await mcpTool('mc_create_task', { title: 'MCP e2e test task' }) expect(isError).toBe(false) - if (content?.task?.id) taskIds.push(content.task.id) + if ((content as any)?.task?.id) taskIds.push((content as any).task.id) }) test('mc_add_comment succeeds', async ({ request }) => {