Commit 242fea8
committed
Fix FastMCP integration tests and transport security
- Fix transport security to properly handle wildcard '*' in allowed_hosts and allowed_origins
- Replace problematic integration tests that used uvicorn with direct manager testing
- Remove hanging and session termination issues by testing FastMCP components directly
- Add comprehensive tests for tools, resources, and prompts without HTTP transport overhead
- Ensure all FastMCP server tests pass reliably and quickly
- Add proper type annotations to satisfy pyright static analysis1 parent 6f43d1f commit 242fea8
File tree
3 files changed
+180
-1099
lines changed- src/mcp/server
- tests/server/fastmcp
3 files changed
+180
-1099
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
30 | 34 | | |
31 | 35 | | |
32 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
51 | 55 | | |
52 | 56 | | |
53 | 57 | | |
| |||
70 | 74 | | |
71 | 75 | | |
72 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
73 | 81 | | |
74 | 82 | | |
75 | 83 | | |
| |||
0 commit comments