Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions examples/mcp_sum_server.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
"""FastMCP server exposing a simple sum tool.

Run with: `python examples/mcp_sum_server.py`.
"""

from __future__ import annotations

from fastmcp import FastMCP


server = FastMCP("SumServer")


@server.tool()
def sum(a: int, b: int) -> dict[str, int]:
"""Return the sum of two integers."""
return {"result": a + b}


if __name__ == "__main__":
server.run()


2 changes: 2 additions & 0 deletions hud/agents/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@
from .claude import ClaudeAgent
from .openai import OperatorAgent
from .openai_chat_generic import GenericOpenAIChatAgent
from .openrouter import OpenRouterAgent

__all__ = [
"ClaudeAgent",
"GenericOpenAIChatAgent",
"MCPAgent",
"OperatorAgent",
"OpenRouterAgent",
]
Loading