This repository is for testing methods to reduce LLM context occupied by MCP tool descriptions.
First, install pre-commit hooks with:
uv run pre-commit installThis will make it so you cannot make a git commit if it does not satisfy conditions from .pre-commit-config.yaml. Namely:
- Large files added
- Bad formatting
- Ruff's linter fails
- Pyrefly's type checking fails
If you want to run the checks manually, execute the following command
uv run pre-commit run --all-filesNext, you need to add LLM credentials. For that, copy the .env.example file
to .env:
cp .env.example .envand fill out all the variables.
Finally, run the benchmark with:
uv run --env-file .env benchmark.pyIf you want to chat with the agent, run the web client via:
uv run --env-file .env uvicorn partial_mcp.web:app --port 8000