Add instructions field to ServerSession and FastMCP
This commit is contained in:
parent
135191403a
commit
bc6746e89b
1 changed files with 18 additions and 5 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue