Build custom MCP tools
my-plugin/ ├── __init__.py ├── plugin.py # Tool definitions └── requirements.txt # Dependencies
# plugin.py from mekong.plugin import BaseTool class HelloWorld(BaseTool): name = "hello_world" description = "Say hello to someone" arguments = { "name": { "type": "string", "description": "Name to greet" } } def execute(self, name: str) -> str: return f"Hello, {name}!" TOOLS = [HelloWorld]
mekong config set plugins.path ./my-plugin mekong mcp