commit
ee4a4ada2e
3 changed files with 22 additions and 2 deletions
20
.github/workflows/main.yml
vendored
Normal file
20
.github/workflows/main.yml
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-python@v5
|
||||||
|
with:
|
||||||
|
python-version: "3.10"
|
||||||
|
|
||||||
|
- run: pip install .
|
||||||
|
- run: pip install -U pytest trio
|
||||||
|
- run: pytest
|
||||||
|
|
@ -7,7 +7,7 @@ name = "mcp-python"
|
||||||
version = "0.1.3"
|
version = "0.1.3"
|
||||||
description = "Model Context Protocol implementation for Python"
|
description = "Model Context Protocol implementation for Python"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.8"
|
requires-python = ">=3.10"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyio",
|
"anyio",
|
||||||
"httpx",
|
"httpx",
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@ async def test_server_session_initialize():
|
||||||
tg.start_soon(run_server)
|
tg.start_soon(run_server)
|
||||||
|
|
||||||
await client_session.initialize()
|
await client_session.initialize()
|
||||||
except* anyio.ClosedResourceError:
|
except anyio.ClosedResourceError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
assert received_initialized
|
assert received_initialized
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue