Rename FastMCP to MCPServer (#1951)
This commit is contained in:
parent
4a2d83a0cb
commit
65c614e48e
1 changed files with 713 additions and 693 deletions
|
|
@ -15,9 +15,9 @@ If you want to read more about the specification, please visit the [MCP document
|
|||
Here's a simple MCP server that exposes a tool, resource, and prompt:
|
||||
|
||||
```python title="server.py"
|
||||
from mcp.server.fastmcp import FastMCP
|
||||
from mcp.server.mcpserver import MCPServer
|
||||
|
||||
mcp = FastMCP("Test Server", json_response=True)
|
||||
mcp = MCPServer("Test Server", json_response=True)
|
||||
|
||||
|
||||
@mcp.tool()
|
||||
|
|
|
|||
Loading…
Reference in a new issue