{% extends parent %} {% block title %}MCPs - Introspect{% endblock %} {% macro mcp_qs(server='', command='', failed=filter_failed, page=1) -%} {% if server %}server={{ server }}&{% endif %}{% if command %}command={{ command }}&{% endif %}{% if failed %}failed=true&{% endif %}page={{ page }} {%- endmacro %} {% block content %}

MCP Servers

{# --- Server buttons --- #}

Servers

All servers {% for srv in mcp_servers %} {{ srv[0] }} {{ srv[1] }} {% if srv[3] > 0 %}{{ srv[3] }}{% endif %} {% endfor %}
{# --- Command buttons (for selected server or all) --- #} {% if mcp_commands %}

Commands{% if filter_server %} — {{ filter_server }}{% endif %}

{% if filter_server %} All commands {% endif %} {% for cmd in mcp_commands %} {% if not filter_server %}{{ cmd[0] }}/{% endif %}{{ cmd[1] }} {{ cmd[2] }} {% if cmd[3] > 0 %}{{ cmd[3] }}{% endif %} {% endfor %}
{% if filter_failed %}Show all{% else %}Failed only{% endif %}
{% endif %} {% if stats %}
{{ stats[0] }}
Matching Calls
{{ stats[1] }}
Failed
{% endif %}
{% for tc in tool_calls %} {% endfor %}
Session Called At Server Command Status Input Preview Exec Time
{{ (clean_title(tc[7] or '') or (tc[0]|string)[:12] + '...')|truncate(50) }} {{ (tc[1]|string)[:19] }} {{ tc[2] or '' }} {{ tc[3] or '' }} {% if tc[4] == 'true' %} FAILED {% else %} OK {% endif %} {{ tc[5] or '' }} {{ tc[6] or '' }}
{% endblock %}