Overview of Model Context Protocol (MCP) in BuildingAI
SSE (Server-Sent Events) and HTTP streamable communication protocols.website·Indexed 33 days ago
https://doc.buildingai.ccDocumentation for BuildingAI, a platform for deploying AI agents, workflows, and knowledge bases. It includes guides on model and API key configuration, payment integration (WeChat, Alipay), user management via membership subscriptions and credits, and the integration of MCP tools. The docs also cover the installation of specific AI applications like Nano banana, Wan漫剧, and Jimeng AI, as well as deployment via Docker and pnpm.
SSE (Server-Sent Events) and HTTP streamable communication protocols.BuildingAI is an open-source enterprise-grade agent building platform designed for AI developers, entrepreneurs, and organizations. It enables the creation of native AI applications in minutes via a zero-code visual configuration interface (DIY).
Key native AI capabilities include:
Key commercial closed-loop features include:
curl --request GET \
--url http://prod-cn.your-api-server.com/consoleapi/datasets/documents/segments/{segment_id} \
--header 'Authorization: Bearer {{token}}'# Example request
curl -X GET "http://prod-cn.your-api-server.com/consoleapi/ai-providers/{provider_id}" \
-H "Authorization: Bearer {{token}}"Request Parameters:
Authorization (Header, Required): Bearer token for authentication.Response Body (JSON):
code (integer): Response status code.message (string): Response message.timestamp (integer): Server timestamp.data (object): The provider details containing:id (string): Unique identifier of the provider.provider (string): Provider identifier.name (string): Display name of the provider.baseUrl (string): API base URL.iconUrl (string): URL to the provider's icon.websiteUrl (string): Official website URL.authConfig (object): Provider-specific authentication settings.globalConfig (object): Global configuration settings.supportedFeatures (array of strings): List of features supported by this provider.isActive (boolean): Whether the provider is currently active.connectionStatus (string): Current connectivity status.description (string): Description of the provider.sortOrder (integer): Display order.createdAt / updatedAt (string): ISO timestamps for record lifecycle.models (array of strings): List of models supported by this provider.BuildingAI offers two distinct versions with different licensing models:
For purely presentational AI components (not tied to specific app session APIs), use the primitives in @buildingai/ui/components/ai-elements. These are categorized into:
Conversation, ConversationContent, ConversationScrollButton, ConversationDownloadMessage, MessageContent, MessageActionsPromptInput, PromptInputTextarea, PromptInputSubmit, PromptInputAttachmentsReasoning, ReasoningTrigger, ReasoningContent, ChainOfThoughtTool, ToolHeader, ToolInput, ToolOutput, ConfirmationCodeBlock, CodeBlockCopyButton, Terminal, TerminalCopyButtonInlineCitation, Sources, SourceFileTree, Queue, Task, TestResults, StackTraceImage, AudioPlayer, WebPreview, JSXPreviewModelSelector, VoiceSelector, MicSelectorGET /consoleapi/key-templates/{id} endpoint to retrieve detailed information about a specific key template. The request requires a template ID in the path and a Bearer token for authorization in the header. The response returns a JSON object containing the template's configuration, including its name, icon, type, field configurations, and status.curl --request GET \
--url http://prod-cn.your-api-server.com/consoleapi/key-templates/61addba4-9ccb-4d28-9a1b-74447fe9e92a \
--header 'Authorization: Bearer {{token}}'参考拓展应用模板/
├── .gitignore git ignore config
├── README.md Plugin description
├── SEEDS.md Database seed instructions
├── LICENSE Open source license
├── package.json Package config (dependencies/scripts/entry)
├── tsconfig.json General TS config
├── tsconfig.api.json Backend API TS config
├── tsconfig.web.json Frontend Web TS config
├── tsup.config.ts API build config (tsup)
├── vite.config.ts Web build/dev config (Vite)
├── eslint.config.mjs ESLint config
├── index.html Web entry HTML
├── manifest.json Plugin manifest (metadata/entry/config)
├── data/ Runtime data directory
├── storage/ File storage directory (uploads/generated files)
├── src/
│ ├── web/ Frontend (React)
│ │ ├── main.tsx Frontend entry
│ │ ├── routes.tsx Route configuration
│ │ ├── locales/ i18n resources
│ │ ├── styles/ Styles
│ │ ├── pages/ Pages (index.tsx for home, console/ for admin)
│ │ ├── components/ Common components
│ │ ├── stores/ Global state management
│ │ ├── assets/ Static assets
│ │ └── services/ API request wrappers
│ └── api/ Backend (NestJS + TypeORM)
│ ├── index.ts API entry file
│ ├── upgrade/ Versioned upgrade scripts
│ ├── static/ API-provided static resources
│ ├── db/
│ │ ├── entities/ TypeORM entities
│ │ ├── migrations/ Migration files
│ │ └── seeds/ Seed data and seeders
│ └── modules/ Business modules (e.g., article, category)
│ ├── app.module.ts Unified module entry
│ └── [module-name]/
│ ├── [name].module.ts
│ ├── dto/ DTO definitions
│ ├── controllers/
│ │ ├── web/ Public-facing controllers
│ │ └── console/ Admin-facing controllers
│ └── services/ Business logic
├── build/ Build artifacts (JS entities loaded at runtime)
│ ├── index.js
│ ├── db/ Compiled entities and seeds
│ ├── modules/ Compiled modules
│ └── upgrade/ Compiled upgrade scripts
└── .output/ Packaged output directory/consoleapi/datasets/data-records/all endpoint to retrieve a paginated list of data records. This API returns detailed information about files, including their processing status, chunk count, and embedding model used. Authentication is required via a Bearer token in the request header.curl -X GET "http://prod-cn.your-api-server.com/consoleapi/datasets/data-records/all" \
-H "Authorization: Bearer {{token}}"