mirror of
https://github.com/usestrix/strix.git
synced 2026-08-25 04:12:37 +02:00
* add a generic MCP client and a config for connecting MCP servers * Add MCP docs and CLI polish: docs page, startup connect summary, --mcp-config flag, compact tool output * Add MCP connection notes and per-run selection; clean up on cancel and dedupe names * Show errored MCP tool calls as failed in the TUI * Sanitize namespaced tool names so model APIs accept them * Show MCP tool calls distinctly in the terminal and the run viewer * Say what MCP servers are worth connecting for * Correct the notes docstring to match how notes reach the agent * keep the mcp tests from reading your shell's STRIX_MCP_* vars
26 lines
652 B
Python
26 lines
652 B
Python
"""Generic MCP client: connect MCP servers and expose their tools."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from strix.tools.mcp.client import ConnectedMcpServer, connect_mcp_servers
|
|
from strix.tools.mcp.config import (
|
|
BearerAuth,
|
|
McpAuth,
|
|
McpConnectionConfig,
|
|
)
|
|
from strix.tools.mcp.loader import load_user_mcp_configs
|
|
from strix.tools.mcp.naming import McpToolOrigin, namespaced_tool_name, resolve_mcp_tool
|
|
|
|
|
|
__all__ = [
|
|
"BearerAuth",
|
|
"ConnectedMcpServer",
|
|
"McpAuth",
|
|
"McpConnectionConfig",
|
|
"McpToolOrigin",
|
|
"connect_mcp_servers",
|
|
"load_user_mcp_configs",
|
|
"namespaced_tool_name",
|
|
"resolve_mcp_tool",
|
|
]
|