Skip to main content
Glama
jhliberty

Basecamp MCP Server

by jhliberty

get_documents

Retrieve a list of documents from a specific vault by providing the project ID and vault ID, enabling efficient document management within Basecamp MCP Server.

Instructions

List documents in a vault

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idYesProject ID
vault_idYesVault ID

Implementation Reference

  • MCP tool handler for 'get_documents' that calls the Basecamp client's getDocuments method and returns a formatted JSON response.
    case 'get_documents': {
      const documents = await client.getDocuments(typedArgs.project_id, typedArgs.vault_id);
      return {
        content: [{
          type: 'text',
          text: JSON.stringify({
            status: 'success',
            documents,
            count: documents.length
          }, null, 2)
        }]
      };
    }
  • src/index.ts:407-418 (registration)
    Registration of the 'get_documents' tool in the MCP server's tools list, including name, description, and input schema.
    {
      name: 'get_documents',
      description: 'List documents in a vault',
      inputSchema: {
        type: 'object',
        properties: {
          project_id: { type: 'string', description: 'Project ID' },
          vault_id: { type: 'string', description: 'Vault ID' },
        },
        required: ['project_id', 'vault_id'],
      },
    },
  • Input schema definition for the 'get_documents' tool validating project_id and vault_id parameters.
    inputSchema: {
      type: 'object',
      properties: {
        project_id: { type: 'string', description: 'Project ID' },
        vault_id: { type: 'string', description: 'Vault ID' },
      },
      required: ['project_id', 'vault_id'],
    },
  • Core helper method in BasecampClient that performs the API call to retrieve documents from a project vault.
    async getDocuments(projectId: string, vaultId: string): Promise<Document[]> {
      const response = await this.client.get(`/buckets/${projectId}/vaults/${vaultId}/documents.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