Skip to main content

bazis-mcp

The MCP server of a Bazis project. It gives AI agents (Claude Code, IDEs with MCP support) what they need to build and check a Bazis project from the project itself rather than from memory:

  • the catalog of the Bazis packages, also the ones not installed: what each one solves, what it requires, and its guide for agents (AGENTS.md and bazis_manifest.toml);
  • the facts about the project: installed packages, settings (secrets hidden), models and routes (bazis.core.introspect);
  • the system checks of the project and of its Bazis packages (manage.py bazis_doctor).

All tools only read. The agent changes the files itself and checks the result with the server.

Installation

Install it as a development dependency of the project:

pip install bazis-mcp

Register the server for the MCP client with the directory of manage.py (MCP clients start servers in their own working directory, usually the repository root):

# Claude Code, run in the repository root
claude mcp add bazis -- .venv/bin/bazis-mcp --project-dir app

or in .mcp.json of the repository:

{
  "mcpServers": {
    "bazis": {"command": ".venv/bin/bazis-mcp", "args": ["--project-dir", "app"]}
  }
}

(app is the directory of manage.py; leave --project-dir out if it is the root.)

bazis-mcp [--project-dir DIR] [--settings MODULE]:

  • --project-dir — the directory of manage.py and project.env (default: the current directory);
  • --settings — the settings module (default: DJANGO_SETTINGS_MODULE, or the module that manage.py sets).

The environment of the project (project.env, BS_* variables) is read as by manage.py. The project tools run bazis_introspect and bazis_doctor in a new process at every call (with the Python of the project: --python, else .venv of the project directory or of its parent, else the Python of the server): they see the code as it is now, while an agent changes it, and they run the project code like manage.py does. They need neither the database nor Redis. If the project cannot be loaded, the catalog tools still work and the project tools return the error.

bazis-mcp is not a Django app: do not add it to BS_INSTALLED_APPS.

Tools

Tool Returns
list_packages Every Bazis package: summary, solves, requires, pairs_well, installed_version, catalog_version, guide_version
package_guide(name) The AGENTS.md and the manifest of a package (bazis for the core)
project_info(sections) packages, settings, models, routes of the project
run_doctor(deploy) The messages of the system checks; ok is false if there is an error

Resource: bazis://packages/{name}/agents.md. Prompts: add_package(name) (add a package and make the checks pass) and audit_project (review the project against the guides and checks of its packages).

An installed package is described by its installed files. The packages that are not installed, and those installed in a version without a guide (before 2.4), come from catalog.json, a snapshot of the latest releases taken at the release of bazis-mcp; guide_version is the version the guide describes.

The settings are shown with the secrets hidden by bazis.core.introspect (by the names of the settings and keys, the passwords of URLs and the credentials of Authorization values). The tool results go to the model of the MCP client: review what the project keeps in its settings before connecting it.

Metadata

Release files for bazis-mcp 2.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bazis-mcp 2.4.1
File Size Uploaded
bazis_mcp-2.4.1.tar.gz 46.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bazis-mcp 2.4.1
File Interpreter ABI Platform
bazis_mcp-2.4.1-py3-none-any.whl Python 3 none any Details

Total release size: 83.5 kB

Release files / bazis_mcp-2.4.1.tar.gz

Download URL bazis_mcp-2.4.1.tar.gz
Size 46.9 kB
Tags Source
SHA-256 checksum
How to use checksums
487642e55a8e8234c91bc02f9dec4feb7a15d4ad3132eb79749e4560f0fef455
BLAKE2b-256 checksum
How to use checksums
9dc50b6f15cb366d03e5aaa7bcf35d2bc92843d102198c9ab02c102a98cb4da6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / bazis_mcp-2.4.1-py3-none-any.whl

Download URL bazis_mcp-2.4.1-py3-none-any.whl
Size 36.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
de47f287e57825c57121045a8dc3543e18880c7e967fadf3c0cfdcd0c062ab67
BLAKE2b-256 checksum
How to use checksums
44da0e9b58103ff7ede63ef4d5659a7da731a76f0cdb4cd296e26f19399fd684
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

2.4.2

2 release files

This release

2.4.1 This release

2 release files

2.4.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page