From 3d181537d8674cfd698395574519a4136a1b35b6 Mon Sep 17 00:00:00 2001 From: jaydeep869 Date: Thu, 16 Apr 2026 04:14:42 +0530 Subject: [PATCH] fix: update dot-project spec hash and mcp expected tools count --- .github/dot-project-spec-hash.txt | 2 +- tests/integration/test_mcp_server.py | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/dot-project-spec-hash.txt b/.github/dot-project-spec-hash.txt index 9d00c0fd..3a0e68ce 100644 --- a/.github/dot-project-spec-hash.txt +++ b/.github/dot-project-spec-hash.txt @@ -1 +1 @@ -b8ca7eb0c2a5e181806bdcfd5181616295538cbc04ea3ac268be7a38f9eb2f20 +d8ca8361c0aff434e9d7288851717f88f149785419ca062a520cdd506ae6b27e diff --git a/tests/integration/test_mcp_server.py b/tests/integration/test_mcp_server.py index 2e17d081..95a99c36 100644 --- a/tests/integration/test_mcp_server.py +++ b/tests/integration/test_mcp_server.py @@ -68,15 +68,17 @@ async def test_server_starts_and_lists_tools(self): tools_result = await session.list_tools() tool_names = [t.name for t in tools_result.tools] - # Verify all 15 expected tools are present + # Verify all 18 expected tools are present expected_tools = [ # Audit "audit_openssf_baseline", "list_available_checks", + "audit_org", # Configuration "get_project_config", "init_project_config", "confirm_project_context", + "get_pending_context", # Threat Model & Attestation "generate_threat_model", "generate_attestation", @@ -89,14 +91,15 @@ async def test_server_starts_and_lists_tools(self): "commit_remediation_changes", "create_remediation_pr", "get_remediation_status", - # Test Repository + # Internal/Organization + "list_org_repos", "create_test_repository", ] for tool in expected_tools: assert tool in tool_names, f"Missing tool: {tool}" - # Should have exactly 15 tools - assert len(tool_names) == 15, f"Expected 15 tools, got {len(tool_names)}: {tool_names}" + # Should have exactly 18 tools + assert len(tool_names) == 18, f"Expected 18 tools, got {len(tool_names)}: {tool_names}" @pytest.mark.asyncio async def test_list_available_checks(self):