Skip to content

Commit aa17a02

Browse files
zjwu0522claude
andcommitted
fix: pin all MCP server versions for reproducible benchmarks
Pin filesystem (@2025.12.18), postgres (0.3.0), and playwright (0.0.68) versions. Also pin notion @1.9.1 in base_agent.py for consistency with mcpmark_agent.py. GitHub (v0.15.0) and notion were already pinned in #246. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 8f96327 commit aa17a02

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ RUN python3 -m playwright install chromium && \
7979
npx -y playwright install chromium
8080

8181
# Layer 9: Install PostgreSQL MCP server (Python, used via `pipx run postgres-mcp`)
82-
RUN pipx install postgres-mcp
82+
RUN pipx install postgres-mcp==0.3.0
8383

8484
# Set working directory
8585
WORKDIR /app

src/agents/base_agent.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def _create_stdio_server(self) -> MCPStdioServer:
176176
raise ValueError("Notion API key required")
177177
return MCPStdioServer(
178178
command="npx",
179-
args=["-y", "@notionhq/notion-mcp-server"],
179+
args=["-y", "@notionhq/notion-mcp-server@1.9.1"],
180180
env={
181181
"OPENAPI_MCP_HEADERS": (
182182
'{"Authorization": "Bearer ' + notion_key + '", '
@@ -193,7 +193,7 @@ def _create_stdio_server(self) -> MCPStdioServer:
193193
command="npx",
194194
args=[
195195
"-y",
196-
"@modelcontextprotocol/server-filesystem",
196+
"@modelcontextprotocol/server-filesystem@2025.12.18",
197197
str(test_directory),
198198
],
199199
)
@@ -204,7 +204,7 @@ def _create_stdio_server(self) -> MCPStdioServer:
204204
viewport_width = self.service_config.get("viewport_width", 1280)
205205
viewport_height = self.service_config.get("viewport_height", 720)
206206

207-
args = ["-y", "@playwright/mcp@latest"]
207+
args = ["-y", "@playwright/mcp@0.0.68"]
208208
if headless:
209209
args.append("--headless")
210210
args.extend(
@@ -234,7 +234,7 @@ def _create_stdio_server(self) -> MCPStdioServer:
234234
)
235235
return MCPStdioServer(
236236
command="pipx",
237-
args=["run", "postgres-mcp", "--access-mode=unrestricted"],
237+
args=["run", "postgres-mcp==0.3.0", "--access-mode=unrestricted"],
238238
env={"DATABASE_URI": database_url},
239239
)
240240

src/agents/mcpmark_agent.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1131,7 +1131,7 @@ def _create_stdio_server(self) -> MCPStdioServer:
11311131
command="npx",
11321132
args=[
11331133
"-y",
1134-
"@modelcontextprotocol/server-filesystem",
1134+
"@modelcontextprotocol/server-filesystem@2025.12.18",
11351135
str(test_directory),
11361136
],
11371137
)
@@ -1142,7 +1142,7 @@ def _create_stdio_server(self) -> MCPStdioServer:
11421142
viewport_width = self.service_config.get("viewport_width", 1280)
11431143
viewport_height = self.service_config.get("viewport_height", 720)
11441144

1145-
args = ["-y", "@playwright/mcp@latest"]
1145+
args = ["-y", "@playwright/mcp@0.0.68"]
11461146
if headless:
11471147
args.append("--headless")
11481148
args.extend(
@@ -1176,7 +1176,7 @@ def _create_stdio_server(self) -> MCPStdioServer:
11761176

11771177
return MCPStdioServer(
11781178
command="pipx",
1179-
args=["run", "postgres-mcp", "--access-mode=unrestricted"],
1179+
args=["run", "postgres-mcp==0.3.0", "--access-mode=unrestricted"],
11801180
env={"DATABASE_URI": database_url},
11811181
)
11821182

0 commit comments

Comments
 (0)