Commit 8a15c22
committed
refactor(server): migrate MCP server to use fetch_tools
Update MCP server handlers to use dynamic tool fetching:
list_tools():
- Replace get_tools() with fetch_tools()
call_tool():
- Extract account_id from arguments before fetching
- Use fetch_tools() with actions filter to get specific tool
- Pass account_id to fetch_tools() when provided
This completes the migration from OAS-based tool loading to
MCP-backed dynamic tool fetching in the server component.1 parent 0fb3aff commit 8a15c22
1 file changed
+11
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
133 | 142 | | |
134 | 143 | | |
135 | 144 | | |
| |||
139 | 148 | | |
140 | 149 | | |
141 | 150 | | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | 151 | | |
146 | 152 | | |
147 | 153 | | |
| |||
0 commit comments