Skip to main content
Glama

MCP Code Editor

by alejoair
debug_detailed.py1.04 kB
#!/usr/bin/env python3 """ Detailed debug of the diff block validation and application """ from mcp_code_editor.core.models import DiffBlock def test_block_validation(): """Test the block validation process""" block_dict = { "start_line": 2, "search_content": " print(\"Hello World\")", "replace_content": " print(\"Hello Python!\")" } print(f"Testing block_dict: {block_dict}") try: # Test validation diff_block = DiffBlock.validate_block_dict(block_dict) print(f"OK Validation successful: {diff_block}") # Test the actual diff block properties print(f"Start line: {diff_block.start_line}") print(f"Search content: {repr(diff_block.search_content)}") print(f"Replace content: {repr(diff_block.replace_content)}") return diff_block except Exception as e: print(f"ERROR Validation failed: {e}") return None if __name__ == "__main__": test_block_validation()

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/alejoair/mcp-code-editor'

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