File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+
2+ [tool .poetry ]
3+ name = " python-sdk"
4+ version = " 0.0.1"
5+ description = " Python SDK"
6+ authors = [" Your Name <youremail@example.com>" ]
7+
8+ [tool .poetry .dependencies ]
9+ python = " ^3.13"
10+ pydantic = " ^2.7"
11+ httpx = " ^0.23"
12+
13+ [tool .poetry .dev-dependencies ]
14+ pytest = " ^8.3.5"
15+ ruff = " ^0.11.8"
16+ mypy = " ^1.15.0"
Original file line number Diff line number Diff line change 1- fastapi
2- httpx
3- uvicorn
4- sse-starlette
5- anyio
1+
2+ pytest
3+ ruff
4+ mypy
Original file line number Diff line number Diff line change 1+
2+ pydantic
3+ httpx
4+ mcp
Original file line number Diff line number Diff line change 1+
2+ # Run lint checks
3+ ruff .
4+
5+ # Run tests
6+ pytest
7+
8+ # Run type checks
9+ mypy src/ tests/
Original file line number Diff line number Diff line change 1+
2+ import pytest
3+ from mcp .server .fastmcp import FastMCP
4+
5+ @pytest .mark .asyncio
6+ async def test_get_prompt_returns_description ():
7+ mcp = FastMCP ("TestApp" )
8+
9+ @mcp .prompt ()
10+ def sample_prompt ():
11+ """This is a sample prompt description."""
12+ return "Sample prompt content."
13+
14+ prompt_info = await mcp .get_prompt ("sample_prompt" )
15+ assert prompt_info ["description" ] == "This is a sample prompt description."
You can’t perform that action at this time.
0 commit comments