trading_agent.doctor.checks.mcp_servers_check
¶
Checks that mcp_servers.json can be read, and names the servers in it.
It does not start the servers; trading-agent mcp list does that.
Typical usage example:
result = McpServersCheck(Path('mcp_servers.json')).run()
McpServersCheck
¶
Bases: DoctorCheck
Checks the MCP server list.
Creates the check.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
servers_file
|
Path
|
The mcp_servers.json file. |
required |
Source code in src/trading_agent/doctor/checks/mcp_servers_check.py
run
¶
Reads the file.
Returns:
| Type | Description |
|---|---|
CheckResult
|
OK with the server names, OK with a note when there is no file, or failed when it cannot be read, in which case the gateway will not start. |