Skip to content

Commit ae51d72

Browse files
author
Zvi Fried
committed
fix url types
1 parent 6919eb1 commit ae51d72

File tree

5 files changed

+8
-9
lines changed

5 files changed

+8
-9
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,3 +159,5 @@ Thumbs.db
159159
*.db
160160
*.sqlite
161161
*.sqlite3
162+
163+
.actrc

src/mcp_as_a_judge/prompts/tool_descriptions/judge_coding_plan.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Args:
1111
plan: The detailed coding plan to be reviewed (REQUIRED)
1212
design: Detailed system design including architecture, components, data flow, and technical decisions (REQUIRED)
1313
research: Research findings on existing solutions, libraries, frameworks, and best practices (REQUIRED)
14-
research_urls: 🌐 URLs from MANDATORY online research - AI assistant MUST provide at least 3 URLs from research (List of URL strings)
14+
research_urls: 🌐 URLs from MANDATORY online research - AI assistant MUST provide at least 3 URLs from research (REQUIRED)
1515
user_requirements: Clear statement of what the user wants to achieve (REQUIRED)
1616
context: Additional context about the project, requirements, or constraints
1717

src/mcp_as_a_judge/server.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -510,10 +510,10 @@ async def judge_coding_plan(
510510
plan: str,
511511
design: str,
512512
research: str,
513+
research_urls: list[str],
513514
user_requirements: str,
514515
ctx: Context,
515516
context: str = "",
516-
research_urls: list[str] | None = None,
517517
) -> JudgeResponse:
518518
"""Coding plan evaluation tool - description loaded from tool_description_provider."""
519519
session_id = get_session_id(ctx)
@@ -525,10 +525,6 @@ async def judge_coding_plan(
525525
f"Plan: {plan}\nUser Requirements: {user_requirements}",
526526
)
527527

528-
# Handle default value for research_urls
529-
if research_urls is None:
530-
research_urls = []
531-
532528
# Store original input for saving later
533529
original_input = {
534530
"plan": plan,

tests/test_design_research_validation.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ def test_judge_coding_plan_signature() -> None:
3434
assert sig.parameters["research"].default == inspect.Parameter.empty, (
3535
"research should be required"
3636
)
37-
# research_urls is optional for backward compatibility but strongly encouraged
38-
assert sig.parameters["research_urls"].default is None, (
39-
"research_urls should have None default for backward compatibility"
37+
# research_urls is now required
38+
assert sig.parameters["research_urls"].default == inspect.Parameter.empty, (
39+
"research_urls should be required"
4040
)
4141
print("✓ plan, design, and research are all required parameters")
4242

tests/test_enhanced_features.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ async def test_judge_coding_plan_with_requirements(
7171
research_urls=[
7272
"https://slack.dev/python-slack-sdk/",
7373
"https://modelcontextprotocol.io/docs/",
74+
"https://github.com/slackapi/python-slack-sdk",
7475
],
7576
user_requirements="Send CI/CD status updates to Slack channels",
7677
context="CI/CD integration project",

0 commit comments

Comments
 (0)