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
f"**{len(all_tools)}** total listed here. The prose \"100+ tools\" refers to "
180
+
"the in-catalog surface; this inventory additionally documents the proxy "
181
+
"transport tools.\n\n"
182
+
)
169
183
170
184
# Summary Table
171
185
md+="## Summary Table\n\n"
@@ -230,7 +244,10 @@ def main():
230
244
# 2. Proxy tools
231
245
protocol_tools, debug_tools=extract_proxy_tools()
232
246
233
-
all_tools=catalog_tools
247
+
# NOTE: copy, don't alias — `all_tools = catalog_tools` would make the two the
248
+
# SAME list, so appending proxy tools below would also grow catalog_tools and
249
+
# corrupt the len(catalog_tools) used for the reconciliation counts.
250
+
all_tools=list(catalog_tools)
234
251
fortinprotocol_tools:
235
252
f=t['function']
236
253
all_tools.append({
@@ -257,8 +274,14 @@ def main():
257
274
iflen(all_tools) !=EXPECTED_TOOL_COUNT:
258
275
print(f"Warning: Expected {EXPECTED_TOOL_COUNT} tools, found {len(all_tools)} — update EXPECTED_TOOL_COUNT in gen_mcp_inventory.py if a tool was added/removed.")
259
276
260
-
# 3. Render
261
-
markdown=generate_markdown(all_tools)
277
+
# 3. Render — pass the catalog/proxy split so the intro can disclose exactly
278
+
# what the total counts (otherwise "122 tools" silently disagrees with the
279
+
# catalog's 111 and the "100+" prose — three numbers, no reconciliation).
0 commit comments