create_runbook
Create and manage runbooks to automate workflows, enabling execution across MCP servers directly from Claude Desktop.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | ||
| name | Yes |
Implementation Reference
- runbook_server.py:51-59 (handler)The handler function for the 'create_runbook' tool. It creates a Markdown file with the given name and content in the runbooks directory, reindexes the search engine, and returns a success message.@mcp.tool() async def create_runbook(name: str, content: str) -> str: """Create a runbook file and save the content.""" file_path = f"{name}.md" with open(os.path.join(conf.runbooks_dir, file_path), "w") as f: f.write(content) search_engine.create_index() return "Created a new runbook"
- runbook_server.py:51-51 (registration)Registers the create_runbook function as an MCP tool using the FastMCP decorator.@mcp.tool()