Skip to content

deeppavlov/partial-mcp

Repository files navigation

Partial MCP

This repository is for testing methods to reduce LLM context occupied by MCP tool descriptions.

Usage

First, install pre-commit hooks with:

uv run pre-commit install

This 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-files

Next, you need to add LLM credentials. For that, copy the .env.example file to .env:

cp .env.example .env

and fill out all the variables.

Finally, run the benchmark with:

uv run --env-file .env benchmark.py

If you want to chat with the agent, run the web client via:

uv run --env-file .env uvicorn partial_mcp.web:app --port 8000

About

Repo for experiments on MCP tool selection

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages