Skip to main content

wmongo-mcp: Model Context Protocol Server for WMongo

wmongo-mcp is an official Model Context Protocol (MCP) server built on top of FastMCP that equips AI agents with tools to architect, validate, scaffold, and generate code for WMongo (Synchronous & Asynchronous MongoDB engine for Python).

Key Technologies & Libraries

  • MCP Protocol: Open standard connecting AI models to external tools and context.
  • FastMCP: Python framework for fast MCP server implementation.
  • WMongo: MongoDB client with multi-collection management, forensic audit trails, and Pydantic validation.
  • Pydantic v2: Data schema validation and Python AST inspection.
  • Pytest: Modern Python testing framework.
  • Pytest-Cov: Code coverage measurement for pytest.
  • Docker: Containerized test execution environment.

MCP Tools Exposed

  1. validate_model_schema(model_code: str): Validates Pydantic document models for WMongo compatibility.
  2. search_wmongo_pattern(query: str): Searches the official wisrovi SUITE catalog for WMongo architectural patterns.
  3. deploy_wmongo_scaffolding(target_dir: str, project_name: str, scaffold_type: str): Deploys project scaffolding with repository, config, models, and tests.
  4. get_wmongo_architect_blueprints(): Returns code reference and blueprints for WMongo features.
  5. get_wmongo_architect_manual(): Returns the comprehensive WMongo architecting manual.
  6. generate_wmongo_crud(model_code: str): Automatically generates repository CRUD class for Pydantic models.

Running Unit Tests & Coverage

Local Pytest Execution

# Install editable package
pip install -e .

# Run pytest test suite
PYTHONPATH=src pytest tests/

# Calculate code coverage
./scripts/run_coverage.sh

Docker Containerized Test Execution

./scripts/run_tests_docker.sh

Part of the wisrovi SUITE ecosystem.

Metadata

Release files for wmongo-mcp 0.1.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 wmongo-mcp 0.1.0
File Size Uploaded
wmongo_mcp-0.1.0.tar.gz 9.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for wmongo-mcp 0.1.0
File Interpreter ABI Platform
wmongo_mcp-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 18.3 kB

Release files / wmongo_mcp-0.1.0.tar.gz

Download URL wmongo_mcp-0.1.0.tar.gz
Size 9.4 kB
Tags Source
SHA-256 checksum
How to use checksums
00376c8bc4d2f8580b107f75bb6297efe3b847f3352cde5c6346aaedee613017
BLAKE2b-256 checksum
How to use checksums
4b791f8f0cfb45a3006a70177a2b839c3c6a1d08be0efcc44dd18ce5b23b4e93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / wmongo_mcp-0.1.0-py3-none-any.whl

Download URL wmongo_mcp-0.1.0-py3-none-any.whl
Size 8.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
448f9dec93c6760168bd32468fc2d75c90a0c8d6ee05d701fe244e7ddca2ad07
BLAKE2b-256 checksum
How to use checksums
43c66c222ce30895e488a83e0d29a8e0e252a34a6fd4f62273e8900ce664ab96
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

0.1.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