Skip to main content

Validates the LLM-generated MCP components against official schema definitions from the MCP TypeScript/Python SDKs to ensure compliance

Project description

mcp-schema_validator

Validates the LLM-generated MCP components against official schema definitions from the MCP TypeScript/Python SDKs to ensure compliance.

Features

  • Schema validation for tools, resources, prompts
  • Supports MCP TypeScript and Python SDK formats
  • Auto-fix suggestions for invalid schema fields
  • Human-readable error messages
  • Integration with LLM for fixes

Installation

pip install mcp-schema_validator

Usage

from mcp_schema_validator import Mcp_schema_validator

# Initialize the library
mcp_schema_validator_instance = Mcp_schema_validator()

# Use the library functions
# Example usage will be added in future versions

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_schema_validator-0.1.0.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_schema_validator-0.1.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file mcp_schema_validator-0.1.0.tar.gz.

File metadata

  • Download URL: mcp_schema_validator-0.1.0.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.6

File hashes

Hashes for mcp_schema_validator-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c08065153df58d93384de78ecf000813360215fcd8eee19e2bf132400e29de0b
MD5 ded375595d07bd908440737bbb316696
BLAKE2b-256 4ffdd603cc2cec02a42d26ea193cc5827573f0ca62a2c791131bcc9772d60224

See more details on using hashes here.

File details

Details for the file mcp_schema_validator-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_schema_validator-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 49848e737d752f41e902f044e0d19ed37c90799840cc2c3e0469f1fb18254d35
MD5 b16c4e269a87ee64f6cc6311e5f6a63e
BLAKE2b-256 cac4a85b8243fc0e0a9fe91bba893da0d718306f77b10798f8cedf013b8fb0b9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page