TypeScript Client
TypeScript Client
Section titled “TypeScript Client”The Fizzy MCP server includes a fully-typed TypeScript client that you can use directly in your applications.
Installation
Section titled “Installation”npm install @fizzy-mcp/clientBasic Usage
Section titled “Basic Usage”import { FizzyClient } from '@fizzy-mcp/client';
const client = new FizzyClient({ accessToken: 'fz_xxxxxxxxxxxxx', accountSlug: '/my-org', // optional baseUrl: 'https://app.fizzy.do', // optional});Making Requests
Section titled “Making Requests”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}`);}Available Namespaces
Section titled “Available Namespaces”Identity
Section titled “Identity”client.identity.getIdentity()Account
Section titled “Account”client.account.getSettings()Boards
Section titled “Boards”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)Comments
Section titled “Comments”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)Columns
Section titled “Columns”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)Error Types
Section titled “Error Types”All errors extend FizzyError:
import { FizzyApiError, FizzyAuthError, FizzyNetworkError, FizzyValidationError,} from '@fizzy-mcp/shared';See Error Handling for details.