Using the official ModelContextProtocol library, create a MCP server which can expose these commands to an agent.