Skip to content

Commit eb1dab2

Browse files
committed
fix: remove duplicate get_board_custom_fields registration
Upstream commit a4e6447 added get_board_custom_fields with a more complete implementation (fetches dropdown options). This duplicated the PM-Labs version added 2026-04-13, crashing the server on startup with 'Tool already registered'. Removed the simpler PM-Labs version; kept the upstream one.
1 parent 009f97f commit eb1dab2

1 file changed

Lines changed: 0 additions & 26 deletions

File tree

‎src/index.ts‎

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1414,32 +1414,6 @@ class TrelloServer {
14141414
}
14151415
);
14161416

1417-
// Custom field tools
1418-
this.server.registerTool(
1419-
'get_board_custom_fields',
1420-
{
1421-
title: 'Get Board Custom Fields',
1422-
description:
1423-
'List all custom field definitions on a board, including each fields id, name, type (text/number/date/checkbox/list), and options for dropdown fields',
1424-
inputSchema: {
1425-
boardId: z
1426-
.string()
1427-
.optional()
1428-
.describe('ID of the Trello board (uses default if not provided)'),
1429-
},
1430-
},
1431-
async ({ boardId }) => {
1432-
try {
1433-
const fields = await this.trelloClient.getBoardCustomFields(boardId);
1434-
return {
1435-
content: [{ type: 'text' as const, text: JSON.stringify(fields, null, 2) }],
1436-
};
1437-
} catch (error) {
1438-
return this.handleError(error);
1439-
}
1440-
}
1441-
);
1442-
14431417
this.server.registerTool(
14441418
'set_card_custom_field',
14451419
{

0 commit comments

Comments
 (0)