get-boards
Retrieve and list all Trello boards accessible through the MCP server to view workspaces and their contents for project management.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:126-151 (handler)Inline handler and registration for the 'get-boards' MCP tool. Fetches the current user's Trello boards using the Trello API and returns the JSON response or an error message.server.tool('get-boards', {}, async () => { try { const response = await fetch( `https://api.trello.com/1/members/me/boards?key=${trelloApiKey}&token=${trelloApiToken}` ); const data = await response.json(); return { content: [ { type: 'text', text: JSON.stringify(data), }, ], }; } catch (error) { return { content: [ { type: 'text', text: `Error getting boards: ${error}`, }, ], isError: true, }; } });