UNPKG

groove-mcp

Version:

Model Context Protocol server for Groove HQ

22 lines 745 B
import { queries } from '../utils/graphql-queries.js'; export class AgentTools { client; constructor(client) { this.client = client; } async listAgents() { const response = await this.client.request(queries.listAgents); return response.agents; } async getAgent(id) { // Since Groove doesn't have a specific getAgent query, we'll list all agents // and find the one with the matching ID const agents = await this.listAgents(); return agents.find(agent => agent.id === id) || null; } async getAvailableAgents() { const agents = await this.listAgents(); return agents.filter(agent => agent.available); } } //# sourceMappingURL=agents.js.map