This directory contains a read-only Python MCP server for browsing and checking the scripts in this repository.
list_scriptslists the available PowerShell, Python, and Bash files.read_scriptreads a script using a path relative toscripts/.search_scriptssearches for text and returns matching lines.describe_scriptreturns metadata and a short preview.validate_scriptchecks syntax without executing the script.list_documentationlists the Markdown documentation files.read_documentationreads one Markdown file.get_repository_summaryreturns script and documentation statistics.
Python validation uses the standard library parser. Bash and PowerShell
validation use bash -n and the PowerShell parser when those programs are
available in PATH.
From the repository root:
python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -r .\scripts\python\requirements.txtpython .\scripts\python\mcp_server.pyThe Streamable HTTP endpoint is available at:
http://localhost:8000/mcp
To inspect the server:
npx -y @modelcontextprotocol/inspectorConnect the inspector to http://localhost:8000/mcp.
codex_cost_router.py is an optional Windows-friendly wrapper for Codex CLI and
a local LiteLLM OSS proxy. It can clean prompts, compress logs, estimate tokens,
apply budgets, and route one-shot Codex tasks to codex-light,
codex-default, codex-long, or codex-deep. The local LiteLLM config
dispatches those aliases across OpenAI and Gemini while keeping API keys in
environment variables. When HF_TOKEN is available, it can also route Hugging
Face and multi-provider tasks through the codex-hf-cheap and codex-hf-fast
LiteLLM aliases, or launch an optional cost-routing-hf Codex profile that
points directly at the Hugging Face router. codex-qwen-local is available as
a local Ollama fallback through qwen2.5-coder:3b.
codex-routing-policy.yaml keeps the default provider rules and fallback order
editable without changing Python code.
See README_Codex_Cost_Routing.md for setup,
activation, LiteLLM configuration, and usage instructions.
To enter OpenAI, Gemini, or Hugging Face keys through a local page for one
session, run Start-CodexKeySessionWeb.ps1 and open
http://127.0.0.1:8787/. Keys are kept in memory for the LiteLLM subprocess
and are not written to disk. Use Test-CodexLiteLLMDispatch.ps1 to verify the
local proxy aliases, or add -Call -Model codex-hf-cheap after entering a
provider key to make one minimal dispatch request.
finance_bias_evaluator.py is a deterministic first-pass checker for finance
security, fairness, auditability, and governance controls. See
README_Finance_Bias_Evaluator.md.
llm_bias_multi_agent.py is a provider-agnostic multi-agent manager for
reviewing and revising LLM answers without calling an LLM provider. See
README_LLM_Bias_Multi_Agent.md.