search
Find Ethereum Improvement Proposals (EIPs) by entering search terms to locate relevant protocol specifications and standards.
Instructions
Search Ethereum EIPs by query string
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes |
Implementation Reference
- main.py:25-34 (handler)The handler function for the MCP 'search' tool, registered via @mcp.tool(). It searches the EIP knowledge base for the given query, retrieves the top 5 matching document chunks, and returns a formatted string with separators and content.@mcp.tool() def search(query: str) -> str: """Search Ethereum EIPs by query string""" # Implementation to be added chunks = knowledge_base.search(query=query, num_documents=5) parts = [] for chunk in chunks: parts.append("-" * 20 + chunk.name + "-" * 20) parts.append(chunk.content) return "\n".join(parts)