MCP Integration Test Fix

Status (2026-10-13): Both fixes are still in place. McpServerInitializer still creates the WikiEngine eagerly before it registers any tool, testFailureIgnore appears in no pom.xml, and wikantik-it-tests/pom.xml binds the Failsafe integration-test and verify goals, so an integration-test failure fails the build. The MCP integration tests now live in wikantik-it-tests/wikantik-selenide-tests/src/main/java/com/wikantik/its/mcp/ (McpProtocolIT, McpInstructionsDriftIT, McpWritePageCycleIT and others, built on WithMcpTestSetup). That module's wikantik-mcp.properties sets mcp.access.allowUnrestricted = true and both mcp.ratelimit.* limits to 0, so those tests exercise the tools but not the access filter or the rate limiter. See MCP Audit Tools for everything that checks the MCP surface.

The MCP integration tests were silently failing due to two root causes: WikiEngine lazy initialization during test setup, and Maven Failsafe's testFailureIgnore setting suppressing failures.

Root Causes

  1. Lazy initialization — The WikiEngine was not fully initialized when MCP tools tried to access managers during integration tests, causing null pointer exceptions
  2. Silent failures — The testFailureIgnore configuration in the Failsafe plugin meant test failures were logged but did not break the build

Fix

Relationships

Cluster Hub: Wikantik Platform Development Hub: Architecture, MCP Protocols, and Agent Briefings (wikantik-development)