mcp with mcp inspector
mcp inspector provide us with the necessary tool to invoke a mcp tools. Let's get back to some basic. Here is my server.py and my client.py server.py from mcp . server . mcpserver import MCPServer mcp = MCPServer ( "hello-world" ) @ mcp . tool () def say_hello ( name : str = "world" ) -> str : """Greet someone by name.""" return f "Hello, { name } ! 👋 (from my first MCP server)" @ mcp . tool () def add ( a : float , b : float ) -> float : """Add two numbers.""" return a + b if __name__ == "__main__" : # stdio transport: the client launches this script and talks over stdin/stdout mcp . run ( transport = "stdio" ) client.py import asyncio , sys from mcp import ClientSession , StdioServerParameters from mcp . client . stdio import stdio_client async def main (): params = StdioServerParameters ( command = sys . exec...