Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.
Python aicode-complexitycode-healthcode-intelligencecode-qualitydead-codedeveloper-toolsdocumentationgit-analyticsmcpopen-sourcepythonrefactoringstatic-analysistechnical-debt
fix(tests): tolerate workspace-tool parenthetical in MCP surface-count regex (#876)
Raghav Chamadiya2ea45f1b3042
diff --git a/tests/unit/server/mcp/test_mcp_docs_drift.py b/tests/unit/server/mcp/test_mcp_docs_drift.pyindex 1af768fb1..04f931fcc 100644--- a/tests/unit/server/mcp/test_mcp_docs_drift.py+++ b/tests/unit/server/mcp/test_mcp_docs_drift.py@@ -46,7 +46,7 @@ def test_surface_counts_match_registry(doc_text: str):m = re.search(r"(\d+) tools are registered in total\. A single-repo server advertises "- r"(\d+) by default.*?Workspace mode adds (\d+) more automatically, for (\d+)",+ r"(\d+) by default.*?Workspace mode adds (\d+) more automatically.*?, for (\d+)",doc_text,flags=re.DOTALL,)