Writing an MCP plugin