mirror of
https://github.com/aljazceru/mcp-python-sdk.git
synced 2025-12-18 22:44:20 +01:00
update package name in readme
This commit is contained in:
10
README.md
10
README.md
@@ -14,7 +14,7 @@ The Model Context Protocol allows applications to provide context for LLMs in a
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
uv add mcp-python
|
||||
uv add mcp
|
||||
```
|
||||
|
||||
## Quick Start
|
||||
@@ -22,8 +22,8 @@ uv add mcp-python
|
||||
### Creating a Client
|
||||
|
||||
```python
|
||||
from mcp_python import ClientSession
|
||||
from mcp_python.client.stdio import stdio_client
|
||||
from mcp import ClientSession
|
||||
from mcp.client.stdio import stdio_client
|
||||
|
||||
async with stdio_client(command="path/to/server") as (read, write):
|
||||
async with ClientSession(read, write) as session:
|
||||
@@ -37,8 +37,8 @@ async with stdio_client(command="path/to/server") as (read, write):
|
||||
### Creating a Server
|
||||
|
||||
```python
|
||||
from mcp_python.server import Server
|
||||
from mcp_python.server.stdio import stdio_server
|
||||
from mcp.server import Server
|
||||
from mcp.server.stdio import stdio_server
|
||||
|
||||
# Create a server instance
|
||||
server = Server("example-server")
|
||||
|
||||
Reference in New Issue
Block a user