Skip to main content
Glama
jhliberty

Basecamp MCP Server

by jhliberty

get_cards

Retrieve all cards from a specific column in Basecamp by providing the project ID and column ID. This tool supports project management and task tracking through Basecamp integration.

Instructions

Get all cards in a column

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
column_idYesThe column ID
project_idYesThe project ID

Implementation Reference

  • MCP tool handler for 'get_cards': extracts arguments, calls client.getCards(), formats response as JSON text content.
    case 'get_cards': {
      const cards = await client.getCards(typedArgs.project_id, typedArgs.column_id);
      return {
        content: [{
          type: 'text',
          text: JSON.stringify({
            status: 'success',
            cards,
            count: cards.length
          }, null, 2)
        }]
      };
    }
  • Input schema defining required project_id and column_id parameters for the get_cards tool.
    inputSchema: {
      type: 'object',
      properties: {
        project_id: { type: 'string', description: 'The project ID' },
        column_id: { type: 'string', description: 'The column ID' },
      },
      required: ['project_id', 'column_id'],
    },
  • src/index.ts:200-211 (registration)
    Registration of the 'get_cards' tool in the MCP tools list, including name, description, and input schema.
    {
      name: 'get_cards',
      description: 'Get all cards in a column',
      inputSchema: {
        type: 'object',
        properties: {
          project_id: { type: 'string', description: 'The project ID' },
          column_id: { type: 'string', description: 'The column ID' },
        },
        required: ['project_id', 'column_id'],
      },
    },
  • Helper method in BasecampClient that performs the actual API call to retrieve cards from a specific column.
    async getCards(projectId: string, columnId: string): Promise<Card[]> {
      const response = await this.client.get(`/buckets/${projectId}/card_tables/lists/${columnId}/cards.json`);
      return response.data;
    }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jhliberty/basecamp-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server