get_recent_activity
Track and retrieve recent actions on a Trello board to monitor updates, manage tasks, and stay informed with customizable activity limits using the MCP Server Trello integration.
Instructions
Fetch recent activity on the Trello board
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of activities to fetch (default: 10) |
Implementation Reference
- src/index.ts:242-248 (handler)MCP tool handler for get_recent_activity that validates input and delegates to TrelloClient.
case 'get_recent_activity': { const validArgs = validateGetRecentActivityRequest(args); const activity = await this.trelloClient.getRecentActivity(validArgs.limit); return { content: [{ type: 'text', text: JSON.stringify(activity, null, 2) }], }; } - src/validators.ts:48-52 (schema)Validation function for get_recent_activity input parameters.
export function validateGetRecentActivityRequest(args: Record<string, unknown>): { limit?: number } { return { limit: validateOptionalNumber(args.limit), }; } - src/index.ts:84-97 (registration)Registration of the get_recent_activity tool with name, description, and input schema.
{ name: 'get_recent_activity', description: 'Fetch recent activity on the Trello board', inputSchema: { type: 'object', properties: { limit: { type: 'number', description: 'Number of activities to fetch (default: 10)', }, }, required: [], }, }, - src/trello-client.ts:90-98 (helper)Implementation of getRecentActivity method in TrelloClient that fetches recent actions from the Trello API.
async getRecentActivity(limit: number = 10): Promise<TrelloAction[]> { console.error(`[TrelloClient] Getting recent activity for board: ${this.config.boardId} (limit: ${limit})`); return this.handleRequest(async () => { const response = await this.axiosInstance.get(`/boards/${this.config.boardId}/actions`, { params: { limit }, }); return response.data; }); }