mirror of
https://github.com/aljazceru/mcp-python-sdk.git
synced 2025-12-19 14:54:24 +01:00
Add instructions field to ServerSession and FastMCP
This commit is contained in:
@@ -51,7 +51,7 @@ async def test_client_session_initialize():
|
||||
prompts=None,
|
||||
),
|
||||
serverInfo=Implementation(name="mock-server", version="0.1.0"),
|
||||
instructions="The server instructions."
|
||||
instructions="The server instructions.",
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
@@ -27,8 +27,9 @@ if TYPE_CHECKING:
|
||||
class TestServer:
|
||||
@pytest.mark.anyio
|
||||
async def test_create_server(self):
|
||||
mcp = FastMCP()
|
||||
mcp = FastMCP(instructions="Server instructions")
|
||||
assert mcp.name == "FastMCP"
|
||||
assert mcp.instructions == "Server instructions"
|
||||
|
||||
@pytest.mark.anyio
|
||||
async def test_non_ascii_description(self):
|
||||
|
||||
Reference in New Issue
Block a user