Bootstrap pyro_mcp v0.0.1 with MCP static tool and Ollama demo

This commit is contained in:
Thales Maciel 2026-03-05 15:41:57 -03:00
commit 11d6f4bcb4
18 changed files with 1945 additions and 0 deletions

30
src/pyro_mcp/server.py Normal file
View file

@ -0,0 +1,30 @@
"""MCP server definition for the v0.0.1 static tool demo."""
from __future__ import annotations
from typing import Final
from mcp.server.fastmcp import FastMCP
HELLO_STATIC_PAYLOAD: Final[dict[str, str]] = {
"message": "hello from pyro_mcp",
"status": "ok",
"version": "0.0.1",
}
def create_server() -> FastMCP:
"""Create and return a configured MCP server instance."""
server = FastMCP(name="pyro_mcp")
@server.tool()
async def hello_static() -> dict[str, str]:
"""Return a deterministic static payload."""
return HELLO_STATIC_PAYLOAD.copy()
return server
def main() -> None:
"""Run the MCP server over stdio."""
create_server().run(transport="stdio")