get-boards
Retrieve and list all Trello boards from your connected workspace to view available projects and organize tasks.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:126-151 (handler)The handler function for the 'get-boards' tool. It fetches the user's Trello boards via the API and returns the JSON data 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, }; } });
- src/index.ts:126-126 (registration)Registration of the 'get-boards' tool with empty input schema using server.tool.server.tool('get-boards', {}, async () => {