Grokking the Model Context Protocol (MCP)
0% completed
Writing a Client
import asyncio from costbook_server import mcp from mcp import Client async def main() -> None: async with Client(mcp) as client: result = await client.list_tools() for tool in result.tools: print(tool.name, "-", tool.description) asyncio.run(main())
list_reports - List the expense reports of the current user. submit_expense - Create one expense on an expense report. approve_expense - Approve one expense after the user confirms. export_report - Export the approved expenses of one month. Slow for a large tenant.
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%