Rename FastMCP to MCPServer (#1951)
This commit is contained in:
parent
4a2d83a0cb
commit
65c614e48e
1 changed files with 713 additions and 693 deletions
12
examples/mcpserver/simple_echo.py
Normal file
12
examples/mcpserver/simple_echo.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
"""MCPServer Echo Server"""
|
||||
|
||||
from mcp.server.mcpserver import MCPServer
|
||||
|
||||
# Create server
|
||||
mcp = MCPServer("Echo Server")
|
||||
|
||||
|
||||
@mcp.tool()
|
||||
def echo(text: str) -> str:
|
||||
"""Echo the input text"""
|
||||
return text
|
||||
Loading…
Reference in a new issue