You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-10Lines changed: 12 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,8 +11,9 @@ Both single and multiple MCP server examples are demonstrated
11
11
-[Agent with multiple MCP servers](agents_mcp_usage/multi_mcp/README.md)
12
12
- Also includes Agent evaluations
13
13
14
-
The repo also includes a Python MCP Server [`run_server.py`](run_server.py) based on [MCP Python SDK Quickstart](https://github.com/modelcontextprotocol/python-sdk/blob/b4c7db6a50a5c88bae1db5c1f7fba44d16eebc6e/README.md?plain=1#L104)
15
-
- Modified to include a datetime tool and run as a server invoked by Agents
14
+
The repo also includes Python MCP Servers:
15
+
-[`example_server.py`](mcp_servers/example_server.py) based on [MCP Python SDK Quickstart](https://github.com/modelcontextprotocol/python-sdk/blob/b4c7db6a50a5c88bae1db5c1f7fba44d16eebc6e/README.md?plain=1#L104) - Modified to include a datetime tool and run as a server invoked by Agents
16
+
-[`mermaid_validator.py`](mcp_servers/mermaid_validator.py) - Mermaid diagram validation server using mermaid-cli
16
17
17
18
Tracing is done through Pydantic Logfire.
18
19
@@ -67,8 +68,9 @@ This project aims to teach:
67
68
-**eval_multi_mcp/** - Contains evaluation examples for multi-MCP usage:
68
69
-`evals_pydantic_mcp.py` - Example of evaluating the use of multiple MCP servers with Pydantic-AI
69
70
70
-
-**Demo Python MCP Server**
71
-
-`run_server.py` - Simple MCP server that runs locally, implemented in Python
71
+
-**Demo Python MCP Servers**
72
+
-`mcp_servers/example_server.py` - Simple MCP server that runs locally, implemented in Python
73
+
-`mcp_servers/mermaid_validator.py` - Mermaid diagram validation MCP server, implemented in Python
# Give Logfire time to complete any pending exports
128
+
print("Shutting down Logfire...")
129
+
logfire.shutdown()
130
+
# Small delay to ensure export completes
131
+
time.sleep(0.5)
132
+
print("Logfire shutdown complete.")
133
+
126
134
127
135
if__name__=="__main__":
128
136
query=f"Add the current time and fix the mermaid diagram syntax using the validator: {invalid_mermaid_diagram_easy}. Return only the fixed mermaid diagram between backticks."
0 commit comments