Skip to content

TypeScript Client

The Fizzy MCP server includes a fully-typed TypeScript client that you can use directly in your applications.

Terminal window
npm install @fizzy-mcp/client
import { FizzyClient } from '@fizzy-mcp/client';
const client = new FizzyClient({
accessToken: 'fz_xxxxxxxxxxxxx',
accountSlug: '/my-org', // optional
baseUrl: 'https://app.fizzy.do', // optional
});

All methods return a Result type for explicit error handling:

const result = await client.cards.list({
board_ids: ['board_abc123'],
});
if (result.ok) {
console.log(`Found ${result.value.length} cards`);
} else {
console.error(`Error: ${result.error.message}`);
}
client.identity.getIdentity()
client.account.getSettings()
client.boards.list()
client.boards.getById(id)
client.boards.create({ name, all_access })
client.boards.update(id, { name })
client.boards.deleteBoard(id)
client.boards.publish(id)
client.boards.unpublish(id)
client.cards.list(filters)
client.cards.getByNumber(number)
client.cards.create(boardId, { title, description })
client.cards.update(number, { title })
client.cards.deleteCard(number)
client.cards.close(number)
client.cards.reopen(number)
client.cards.postpone(number)
client.cards.triage(number, columnId)
client.cards.untriage(number)
client.cards.toggleTag(number, tagTitle)
client.cards.toggleAssignment(number, userId)
client.cards.watch(number)
client.cards.unwatch(number)
client.cards.pin(number)
client.cards.unpin(number)
client.cards.markGolden(number)
client.cards.unmarkGolden(number)
client.comments.list(cardNumber)
client.comments.getById(cardNumber, commentId)
client.comments.create(cardNumber, { body })
client.comments.update(cardNumber, commentId, { body })
client.comments.deleteComment(cardNumber, commentId)
client.columns.list(boardId)
client.columns.getById(boardId, columnId)
client.columns.create(boardId, { name, color })
client.columns.update(boardId, columnId, { name })
client.columns.deleteColumn(boardId, columnId)
client.tags.list()
client.users.list()
client.users.getById(userId)

All errors extend FizzyError:

import {
FizzyApiError,
FizzyAuthError,
FizzyNetworkError,
FizzyValidationError,
} from '@fizzy-mcp/shared';

See Error Handling for details.