Skip to content

Commit 994f3c4

Browse files
committed
Rename MCP server and test client files
Renamed 'my_mcp_server.py' to 'mcp_server.py' and replaced 'my_mcp_test_client.py' with 'mcp_test_client.py' to standardize file naming. Updated the test client to reference the new server filename.
1 parent 118d7ec commit 994f3c4

File tree

3 files changed

+16
-11
lines changed

3 files changed

+16
-11
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import asyncio
2+
from fastmcp import Client
3+
4+
client = Client("mcp_server.py")
5+
6+
7+
async def call_tool(name: str):
8+
async with client:
9+
result = await client.call_tool(
10+
"send_welcome_email",
11+
{"employee_name": name, "email_address": f"{name.lower()}@example.com"},
12+
)
13+
print(result)
14+
15+
16+
asyncio.run(call_tool("Ford"))

src/backend/v3/mcp_server/my_mcp_test_client.py

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)