Skip to main content
Glama

Codebase MCP Server

by Ravenight13
validate_schema.py1.17 kB
#!/usr/bin/env python3 """Validate JSON schema structure.""" import sys import json from pathlib import Path # Add src to path repo_root = Path(__file__).parent.parent sys.path.insert(0, str(repo_root)) from src.auto_switch.models import CONFIG_SCHEMA def test_schema_structure(): """Test that schema is valid JSON Schema.""" # Verify required top-level keys assert "type" in CONFIG_SCHEMA assert CONFIG_SCHEMA["type"] == "object" assert "required" in CONFIG_SCHEMA assert "properties" in CONFIG_SCHEMA # Verify required fields assert "version" in CONFIG_SCHEMA["required"] assert "project" in CONFIG_SCHEMA["required"] # Verify project structure project_schema = CONFIG_SCHEMA["properties"]["project"] assert project_schema["type"] == "object" assert "name" in project_schema["required"] print("✓ Schema structure validation passed") # Pretty print schema print("\nJSON Schema structure:") print(json.dumps(CONFIG_SCHEMA, indent=2)) if __name__ == "__main__": print("Validating JSON Schema structure...\n") test_schema_structure() print("\n✅ Schema validation complete!")

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Ravenight13/codebase-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server