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 server needs neither the database nor Redis. It loads the settings and the application of the project, so it runs the project code like manage.py does. 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.0

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.0
File Size Uploaded
bazis_mcp-2.4.0.tar.gz 45.9 kB Details

Built distribution (wheel)

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

Total release size: 81.8 kB

Release files / bazis_mcp-2.4.0.tar.gz

Download URL bazis_mcp-2.4.0.tar.gz
Size 45.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e3d557aa98e7ad09c94bbf00387410549691637353a580abf20e318402edc004
BLAKE2b-256 checksum
How to use checksums
6f4d8746c830a107f2f8de80983c1d2609f2230ed1e7d4d4e1e9ff64a4dd8f36
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.0-py3-none-any.whl

Download URL bazis_mcp-2.4.0-py3-none-any.whl
Size 35.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b52b98841640abc6b7f07acd6e7a9ce6f48220e0f431aa4576c70e8f6a20db55
BLAKE2b-256 checksum
How to use checksums
cb825108d99af23e515a2377ebea71d70dec2ef69a4ba521f9b8361f0fab6dc4
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

2.4.1

2 release files

This release

2.4.0 This release

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