refactor: move MCP handlers behind editor driver (#2160)