Agent♥︎Age
Catalog

Python Code Validator

Official3 toolsLive

by jkanselaar · Python

Proves AI-generated Python does what you asked: lint, types, security, sandbox run, exact fixes.

ai.statemind/python-code-validator — Model Context Protocol (MCP) Server

This MCP server validates, repairs, and runs AI-generated Python against specified example intent. It exposes three tools—validate_python, repair_python, and execute_python—over HTTP at https://api.statemind.ai/mcp, using a free key with no account. Execution occurs inside a container.

🛠️ Key Features

  • Tools: validate_python, repair_python, execute_python (3 total)
  • Hosted MCP access over HTTP: https://api.statemind.ai/mcp
  • Validates against provided assertions or doctest lines
  • Container run with no network and read-only filesystem
  • Returns a fix only when every example passes

🚀 Use Cases

  • Proving AI-generated Python satisfies given assertions or doctest examples
  • Automatically repairing Python until all provided examples pass
  • Running validated code in a constrained environment

⚡ Developer Benefits

  • Programmatic lint/types/security checks via MCP tools
  • Reproducible container execution without network access
  • Avoids accepting partial fixes when any example fails

⚠️ Limitations

  • Fixes are returned only when all examples pass
  • Execution is restricted: no network and read-only filesystem

📌 Topics

gemini-cli-extension, ai-agents, code-quality, mcp, mcp-server, model-context-protocol, python

Topics

gemini-cli-extensionai-agentscode-qualitymcpmcp-servermodel-context-protocolpython