Skip to main content
Glama

semantic-edit-mcp

by jbr
validation.scm780 B
;; Tree-sitter validation queries for Python semantic editing ;; Conservative rules to avoid false positives ;; CRITICAL: Class definitions cannot be inside function bodies (function_definition body: (block (class_definition) @invalid.class.in.function.body)) ;; CRITICAL: return_statement at module level (module (return_statement) @invalid.return.at.module.level) ;; Only flag functions with 'self' that are DIRECTLY at module level (module (function_definition parameters: (parameters (identifier) @self_param (#eq? @self_param "self"))) @invalid.self.method.at.module.level) (module (return_statement) @invalid.return.at.module.level) (module (expression_statement (yield) @invalid.yield.at.module.level))

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/jbr/semantic-edit-mcp'

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