update package name in readme
This commit is contained in:
parent
01e8040428
commit
500f48d1ad
1 changed files with 5 additions and 5 deletions
10
README.md
10
README.md
|
|
@ -14,7 +14,7 @@ The Model Context Protocol allows applications to provide context for LLMs in a
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
uv add mcp-python
|
uv add mcp
|
||||||
```
|
```
|
||||||
|
|
||||||
## Quick Start
|
## Quick Start
|
||||||
|
|
@ -22,8 +22,8 @@ uv add mcp-python
|
||||||
### Creating a Client
|
### Creating a Client
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from mcp_python import ClientSession
|
from mcp import ClientSession
|
||||||
from mcp_python.client.stdio import stdio_client
|
from mcp.client.stdio import stdio_client
|
||||||
|
|
||||||
async with stdio_client(command="path/to/server") as (read, write):
|
async with stdio_client(command="path/to/server") as (read, write):
|
||||||
async with ClientSession(read, write) as session:
|
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
|
### Creating a Server
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from mcp_python.server import Server
|
from mcp.server import Server
|
||||||
from mcp_python.server.stdio import stdio_server
|
from mcp.server.stdio import stdio_server
|
||||||
|
|
||||||
# Create a server instance
|
# Create a server instance
|
||||||
server = Server("example-server")
|
server = Server("example-server")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue