Skip to main content
Glama

TeamRetro MCP Server

service.ts2.39 kB
import { Team, TeamMember } from 'src/schemas/Team.js'; import { TeamRetroService } from '../../services/TeamRetro.service.js'; import { createSearchParams } from '../../utils/url.js'; class TeamsService extends TeamRetroService { /** * List teams with optional filtering and pagination * @param params Optional parameters for filtering and pagination * @returns List of teams with pagination info */ async listTeams(params?: { offset?: number; limit?: number; teamTags?: string; teamIds?: string; }): Promise<ListApiResponse<Team>> { const searchString = createSearchParams({ offset: { value: params?.offset }, limit: { value: params?.limit }, teamTags: { value: params?.teamTags }, teamIds: { value: params?.teamIds }, }); return this.get<ListApiResponse<Team>>(`/v1/teams?${searchString}`); } /** * Get a single team by ID * @param teamId The ID of the team to retrieve * @returns Single team object * @throws ErrorMCP if team not found */ async getTeam(teamId: string): Promise<SingleApiResponse<Team>> { return this.get<SingleApiResponse<Team>>(`/v1/teams/${teamId}`); } /** * Update an existing team * @param teamId The ID of the team to update * @param data Team data to update * @returns Updated team object * @throws ErrorMCP if team not found or validation fails */ async updateTeam( teamId: string, data: Partial<Pick<Team, "name" | "tags" | "members">> ): Promise<SingleApiResponse<Team>> { return this.patch<SingleApiResponse<Team>>(`/v1/teams/${teamId}`, data); } /** * Create a new team * @param data Team data including name, optional tags and members * @returns Created team object * @throws ErrorMCP if validation fails */ async createTeam(data: { name: string; tags?: string[]; members?: TeamMember[]; }): Promise<SingleApiResponse<Team>> { return this.post<SingleApiResponse<Team>>("/v1/teams", data); } /** * Delete an existing team * @param teamId The ID of the team to delete * @returns void * @throws ErrorMCP if team not found */ async deleteTeam( teamId: string ): Promise<SingleApiResponse<any>> { await this.delete<any>(`/v1/teams/${teamId}`); return { success: true, data: {}, }; } } export const teamsService = new TeamsService();

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/adepanges/teamretro-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server