tools

Page actions AI-ready formats and sharing
Open LLM text
Share with AI
Ask Claude Ask ChatGPT Ask Gemini Ask Copilot

MCP tool support for chirp.

Register functions as MCP tools alongside HTTP routes. Agents call tools via JSON-RPC at/mcp, humans interact through the same functions via HTML routes. Tool calls…

MCP tool support for chirp.

Register functions as MCP tools alongside HTTP routes. Agents call tools via JSON-RPC at/mcp, humans interact through the same functions via HTML routes. Tool calls emit events for real-time dashboards.

Usage::

from chirp import App
from chirp.tools import mount_invocation_log

app = App()

@app.tool("search", description="Search inventory")
async def search(query: str) -> list[dict]:
    return await db.search(query)

# Live ToolEventBus → EventStream bridge (console / Orrery)
mount_invocation_log(app)

tools

Name Type Default Description
type
qualified_name
element_type
description
source_file
line_number
is_autodoc
autodoc_element
_autodoc_template
_autodoc_url_path
_autodoc_page_type
title
doc_content_hash

View source · /home/runner/work/chirp/chirp/site/../src/chirp/tools/__init__.py:1