get_my_cards
Retrieve all Trello cards assigned to the current user, enabling efficient task management and organization within MCP Server Trello.
Instructions
Fetch all cards assigned to the current user
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:290-295 (handler)MCP tool handler for 'get_my_cards': calls trelloClient.getMyCards() and returns JSON stringified response.case 'get_my_cards': { const cards = await this.trelloClient.getMyCards(); return { content: [{ type: 'text', text: JSON.stringify(cards, null, 2) }], }; }
- src/index.ts:206-214 (registration)Registers the 'get_my_cards' tool in the MCP server with description and empty input schema.{ name: 'get_my_cards', description: 'Fetch all cards assigned to the current user', inputSchema: { type: 'object', properties: {}, required: [], }, },
- src/trello-client.ts:165-170 (helper)TrelloClient method that implements the core logic: fetches current user's cards via Trello API endpoint '/members/me/cards'.async getMyCards(): Promise<TrelloCard[]> { return this.handleRequest(async () => { const response = await this.axiosInstance.get('/members/me/cards'); return response.data; }); }