Add mcp dns and mcp node routes commands
mcp dns queries MCNS via an agent to list all zones and DNS records. mcp node routes queries mc-proxy on each node for listener/route status, matching the mcproxyctl status output format. New agent RPCs: ListDNSRecords, ListProxyRoutes. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -34,6 +34,12 @@ service McpAgentService {
|
||||
// Node
|
||||
rpc NodeStatus(NodeStatusRequest) returns (NodeStatusResponse);
|
||||
|
||||
// DNS (query MCNS)
|
||||
rpc ListDNSRecords(ListDNSRecordsRequest) returns (ListDNSRecordsResponse);
|
||||
|
||||
// Proxy routes (query mc-proxy)
|
||||
rpc ListProxyRoutes(ListProxyRoutesRequest) returns (ListProxyRoutesResponse);
|
||||
|
||||
// Logs
|
||||
rpc Logs(LogsRequest) returns (stream LogsResponse);
|
||||
}
|
||||
@@ -301,3 +307,49 @@ message LogsRequest {
|
||||
message LogsResponse {
|
||||
bytes data = 1;
|
||||
}
|
||||
|
||||
// --- DNS ---
|
||||
|
||||
message ListDNSRecordsRequest {}
|
||||
|
||||
message DNSZone {
|
||||
string name = 1;
|
||||
repeated DNSRecord records = 2;
|
||||
}
|
||||
|
||||
message DNSRecord {
|
||||
int64 id = 1;
|
||||
string name = 2;
|
||||
string type = 3;
|
||||
string value = 4;
|
||||
int32 ttl = 5;
|
||||
}
|
||||
|
||||
message ListDNSRecordsResponse {
|
||||
repeated DNSZone zones = 1;
|
||||
}
|
||||
|
||||
// --- Proxy routes ---
|
||||
|
||||
message ListProxyRoutesRequest {}
|
||||
|
||||
message ProxyRouteInfo {
|
||||
string hostname = 1;
|
||||
string backend = 2;
|
||||
string mode = 3;
|
||||
bool backend_tls = 4;
|
||||
}
|
||||
|
||||
message ProxyListenerInfo {
|
||||
string addr = 1;
|
||||
int32 route_count = 2;
|
||||
int64 active_connections = 3;
|
||||
repeated ProxyRouteInfo routes = 4;
|
||||
}
|
||||
|
||||
message ListProxyRoutesResponse {
|
||||
string version = 1;
|
||||
int64 total_connections = 2;
|
||||
google.protobuf.Timestamp started_at = 3;
|
||||
repeated ProxyListenerInfo listeners = 4;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user