Skip to content

Commit 10cd75a

Browse files
OtherVibesZvi Fried
andauthored
Feat/enhanced workflow (#21)
* fix url types * complete workflow more testing needed * enhanced workflow * align loggers * approved changes, still under test * update server * add missing imports * fixes * system prompt changes * fix for validation error * Pop stash, resolve conflicts; migrate to core/*, llm/*, prompting/*; fix circular import between models and workflow via lazy import; align token-aware history and logging; run Ruff (imports left to auto-fix later) * Format code with Ruff to satisfy CI format check * bug fixes * fix desc * ci fixes * fix logger * fixes * context fixes * workflow fixes * worflow enhancements * final fixes, ci + workflow * fix: resolve CI failures - import sorting and bandit security issues - Fixed import sorting issue in llm_client.py detected by ruff - Added nosec B110 comments to intentional try-except-pass blocks - Enhanced LiteLLM configuration with set_verbose=False for cleaner output - All CI checks now passing: ruff, mypy, bandit, and 173 tests * fix: resolve remaining CI issues - formatting and test assertion - Fixed code formatting issues detected by ruff formatter - Updated test assertion to handle actual error message format - All CI checks now passing: ruff, mypy, bandit, formatting, and 173 tests * remove comments * remove unwanted files --------- Co-authored-by: Zvi Fried <[email protected]>
1 parent 3b73bbc commit 10cd75a

File tree

103 files changed

+7998
-2034
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+7998
-2034
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

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
name = "mcp-as-a-judge"
33
version = "0.2.0"
4-
description = "🚨 MCP as a Judge: Prevent bad coding practices with AI-powered evaluation and user-driven decision making"
4+
description = "MCP as a Judge: An AI-powered Model Context Protocol server that provides code review, validation, and quality assessment tools for development workflows"
55
readme = "README.md"
66
license = { text = "MIT" }
77
authors = [
@@ -33,6 +33,7 @@ dependencies = [
3333
"jinja2>=3.1.0",
3434
"litellm>=1.0.0",
3535
"sqlmodel>=0.0.24",
36+
"tenacity>=9.1.2",
3637
]
3738

3839
[project.urls]

scripts/setup-secrets.md

Lines changed: 0 additions & 90 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
"""
2+
Core utilities: logging and shared helpers.
3+
"""
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,13 @@
55
"""
66

77
# LLM Configuration
8-
MAX_TOKENS = 10000 # Maximum tokens for all LLM requests
8+
MAX_TOKENS = (
9+
25000 # Maximum tokens for all LLM requests - increased for comprehensive responses
10+
)
911
DEFAULT_TEMPERATURE = 0.1 # Default temperature for LLM requests
12+
DEFAULT_REASONING_EFFORT = (
13+
"low" # Default reasoning effort level - lowest for speed and efficiency
14+
)
1015

1116
# Timeout Configuration
1217
DEFAULT_TIMEOUT = 30 # Default timeout in seconds for operations

0 commit comments

Comments
 (0)