From bf87864a962eba6f95b1428fd29b0510439fdb8e Mon Sep 17 00:00:00 2001 From: Nyk <0xnykcd@googlemail.com> Date: Sat, 21 Mar 2026 22:29:44 +0700 Subject: [PATCH] fix: CI typecheck error + standalone bind address - Fix TS2339 in mcp-server.spec.ts (content.task access on string type) - Default HOSTNAME=0.0.0.0 in start-standalone.sh for external access Fixes #465, unblocks docker-publish workflow (#464) --- scripts/start-standalone.sh | 3 +++ tests/mcp-server.spec.ts | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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 }) => {