MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / getPausedAgentUrls

Method getPausedAgentUrls

server/src/crawler.ts:163–173  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

161 }
162
163 private async getPausedAgentUrls(): Promise<Set<string>> {
164 try {
165 const result = await query(
166 `SELECT agent_url FROM agent_registry_metadata WHERE monitoring_paused = TRUE`,
167 );
168 return new Set(result.rows.map((r: { agent_url: string }) => r.agent_url));
169 } catch (err) {
170 log.warn({ err }, 'Failed to fetch paused agents, treating all as active');
171 return new Set();
172 }
173 }
174
175 private extractDomain(url: string): string {
176 try {

Callers 2

crawlAllAgentsMethod · 0.95
refreshAgentSnapshotsMethod · 0.95

Calls 2

queryFunction · 0.85
warnMethod · 0.80

Tested by

no test coverage detected