UNPKG

bldbl-mcp-client

Version:

Official MCP client for Buildable - AI-powered development platform that makes any project buildable

70 lines 2.51 kB
"use strict"; /** * Buildable MCP Client * * Official npm package for integrating Buildable with AI assistants * Perfect for Cursor AI, Claude Desktop, and other AI development tools * * Buildable makes any project buildable with AI-powered development assistance * * @example * ```typescript * import { BuildableClient } from 'bldbl-mcp-client'; * * const client = new BuildableClient({ * apiUrl: 'http://localhost:3000/api', * apiKey: 'your-api-key', * projectId: 'your-project-id' * }); * * // Get project context for AI * const context = await client.getProjectContext(); * * // Find next task to work on * const nextTask = await client.getNextTask(); * * // Start working on a task * await client.startTask(nextTask.task.id); * ``` */ Object.defineProperty(exports, "__esModule", { value: true }); exports.setupBuildPlanner = exports.name = exports.version = exports.createBuildPlannerClient = exports.BuildPlannerClient = exports.BuildableClient = void 0; exports.setupBuildable = setupBuildable; const client_1 = require("./client"); // CLI is now handled internally - no need to export server class var client_2 = require("./client"); Object.defineProperty(exports, "BuildableClient", { enumerable: true, get: function () { return client_2.BuildPlannerMCPClient; } }); Object.defineProperty(exports, "BuildPlannerClient", { enumerable: true, get: function () { return client_2.BuildPlannerMCPClient; } }); // Export utilities var client_3 = require("./client"); Object.defineProperty(exports, "createBuildPlannerClient", { enumerable: true, get: function () { return client_3.createBuildPlannerClient; } }); // Package metadata exports.version = '1.6.0'; exports.name = 'bldbl-mcp-client'; /** * Quick setup function for Cursor AI and other tools * * @example * ```javascript * const { setupBuildable } = require('bldbl-mcp-client'); * * const client = setupBuildable({ * apiKey: process.env.BUILDABLE_API_KEY, * projectId: process.env.BUILDABLE_PROJECT_ID * }); * * // Ready to use with AI * const context = await client.getProjectContext(); * ``` */ function setupBuildable(config) { return (0, client_1.createBuildPlannerClient)({ apiUrl: config.apiUrl || 'http://localhost:3000/api', apiKey: config.apiKey, projectId: config.projectId, aiAssistantId: config.aiAssistantId || 'buildable-client', }); } // Backward compatibility alias exports.setupBuildPlanner = setupBuildable; //# sourceMappingURL=index.js.map