Brightsy AI provides comprehensive Model Context Protocol (MCP) integration through multiple deployment options, enabling seamless integration with AI platforms like Claude Desktop, Cursor, Aider, and other MCP-compatible applications.
What is MCP?
Model Context Protocol (MCP) is an open standard that enables AI applications to connect to external data sources and tools through a client-server architecture.
MCP Architecture
MCP Clients: AI applications (Cursor, Claude Desktop, etc.) that want to use external tools
MCP Servers: Services that provide tools and resources to clients
Protocol: JSON-RPC 2.0 over stdio (local) or HTTP (remote) transports
Brightsy MCP Integration
Brightsy provides both MCP client and server implementations:
As an MCP Client: Brightsy Desktop can connect to any MCP server
As an MCP Server: Brightsy MCP server provides tools for accessing Brightsy platform features
Full Platform Access: AI agents can interact with records, files, agents, sites, and more through natural language
This enables AI assistants to have deep, contextual understanding of your Brightsy workspace and perform complex operations autonomously.
MCP Integration Options
Brightsy offers flexible MCP integration through clients and servers. MCP uses a client-server architecture where clients connect to servers to access tools and resources.
1. Brightsy Desktop (Bundled MCP Server + Client)
Best for: Complete MCP experience with local development tools and cloud platform access.
Bundled MCP Server: Brightsy MCP server (@brightsy/mcp-server) included with desktop app
MCP Client: Connects to and manages MCP server connections
Local + Cloud Tools: 60+ tools for filesystem, terminal, CMS, agents, and more
Workspace Context: Provides workspace information to MCP servers
Authentication Sharing: Uses desktop app OAuth credentials for cloud tools
Tool Discovery: Automatically discovers tools from connected servers
2. Standalone MCP Server
Best for: Providing MCP services with local development tools.
NPM Package: @brightsy/mcp-server
Local Tools: Filesystem, terminal, and CLI discovery (no auth required)
Cloud Tools: Full Brightsy platform access via OAuth authentication
Documentation Resources: Comprehensive platform documentation for AI agents
Flexible Deployment: Can run locally or in any Node.js environment
3. Web MCP Server (HTTP Streaming)
Best for: Remote AI agent access without local installation.
HTTP Transport: Web-based MCP server using HTTP streaming
OAuth 2.1: Secure authentication with auto-discovery
Agent-Focused: Optimized for AI agent conversations
mcp-remote Proxy: Required client proxy for stdio-to-HTTP translation
Brightsy Desktop MCP (Recommended)
Brightsy Desktop provides the most comprehensive MCP experience with the Brightsy MCP server bundled and full client capabilities. The desktop app includes both MCP client functionality (to connect to servers) and the Brightsy MCP server itself (to provide tools), making setup seamless.
Log in: Open Brightsy Desktop and authenticate with your account
Configure AI Tool: The Brightsy MCP server is bundled with the desktop app - just configure your AI tool to connect to it
Using Desktop with MCP Servers
The desktop app includes the Brightsy MCP server as a bundled dependency, providing seamless access to both local development tools and cloud platform features.
Option A: Desktop MCP Server (Recommended)
The Brightsy MCP server is pre-installed with the desktop app and automatically reads allowed directories from your desktop configuration. Simply configure your AI tools to connect to it:
MCP Server Discovery: Automatically discovers and connects to configured MCP servers
Workspace Integration: Passes workspace context to MCP servers for file and terminal operations
Authentication Sharing: Uses desktop app credentials when connecting to authenticated MCP servers
Multi-Server Support: Can connect to multiple MCP servers simultaneously
Tool Management: Loads and manages tools from all connected MCP servers
Error Handling: Provides user-friendly error messages for MCP server issues
Note: The Brightsy MCP server is bundled with the desktop app, but you still need to configure your AI tools to connect to it. The desktop app provides both client and server capabilities for a complete MCP experience.
Standalone MCP Server
For standalone deployments or custom configurations, use the @brightsy/mcp-server npm package.
Note: When using Brightsy Desktop, most configuration is automatically detected from the desktop app's settings and shared config file. Manual environment variables are only needed for advanced customization or standalone MCP server usage.
Configuration Properties
Property
Description
Type
command
Executable command
string
args
Command arguments array
string[]
env
Environment variables object
object
timeout
Connection timeout (ms)
number
initializationOptions
MCP initialization options
object
Web MCP Server
Available Tools by Category
Local Development Tools (No Authentication Required)
Filesystem Operations:
local_read_file: Read file contents from allowed directories
local_write_file: Write or update files in allowed directories
local_list_files: List directory contents
local_search_files: Search for files by pattern
local_grep: Search file contents with regex
Terminal & Process Management:
local_run_command: Execute shell commands with timeout/buffer options
start_managed_process: Start long-running processes with monitoring
The mcp-remote tool handles OAuth authentication and protocol translation automatically.
Usage Examples
Desktop MCP Examples (Recommended)
With Brightsy Desktop, you get access to both local development tools and cloud platform features:
You: Read the package.json file in my current project
Claude: [calls local_read_file tool]
Claude: Here's your package.json:
{
"name": "my-project",
"version": "1.0.0",
...
}
You: Run npm test in my project
Claude: [calls local_run_command tool]
Claude: Running npm test...
✓ All tests passed
You: Create a new blog post about React 19
Claude: [calls create_record tool with record_type='blog-post']
Claude: Created blog post with ID: post-123
Title: "Exploring React 19 Features"
Content: "React 19 introduces..."
Cloud-Only Examples
For web MCP server or when focused on platform features:
You: List all my Brightsy agents
Claude: [calls list_agents tool]
Claude: You have 3 agents available:
1. Customer Support Agent (agent-123) - Handles customer inquiries
2. Data Analysis Agent (agent-456) - Performs data analysis tasks
3. Content Writer Agent (agent-789) - Creates marketing content
You: Ask my Customer Support Agent about order #12345
Claude: [calls chat tool with agent_id and message]
Claude: The agent says: Order #12345 was shipped on Jan 15th and is expected to arrive by Jan 20th...
You: Start a conversation with my Data Analysis Agent about Q4 sales
Claude: [calls chat tool, receives chat_id in response]
Claude: The agent says: I'd be happy to analyze Q4 sales data. What specific metrics are you interested in?
You: Focus on revenue by region
Claude: [calls chat tool with chat_id to continue conversation]
Claude: Based on the Q4 data, here are the revenue figures by region:
- North America: $2.4M
- Europe: $1.8M
- Asia Pacific: $1.2M
You: End this conversation
Claude: [calls clear_chat tool]
Claude: Conversation ended and history cleared.
SDK Integration Examples
MCP tools complement the BrightsyClient SDK for programmatic access:
import { BrightsyClient } from '@brightsy/client';
const client = new BrightsyClient({
api_key: 'bsy_...',
account_id: 'account-uuid'
});
// MCP can help discover available record types
const types = await client.cma().listRecordTypes();
// Then work with specific types
const posts = await client.cda()
.recordType('blog-post')
.where('status', 'eq', 'published')
.get();
CLI Integration Examples
The Brightsy CLI works alongside MCP for development workflows:
# MCP can help with CLI operations
brightsy create my-component-library
cd my-component-library
brightsy connect # MCP helps select site/library
brightsy push --dev # Register with MCP-configured environments
BrightsyClient SDK Integration
MCP tools provide AI-assisted access to Brightsy's TypeScript/JavaScript SDK, making it easier to discover and use platform features:
Installation
npm install @brightsy/client
Basic Usage
import { BrightsyClient } from '@brightsy/client';
const client = new BrightsyClient({
api_key: 'bsy_...',
account_id: 'account-uuid'
});
// MCP tools can help you discover available APIs
// Use list_agents, get_record_types, etc. through MCP
// Then use the SDK programmatically
const agents = await client.agents().list();
const records = await client.cda()
.recordType('blog-post')
.where('published', 'eq', true)
.get();
SDK Features Accessible via MCP
Content Management: CMA/CDA/CPA APIs for draft/published/preview content
Agent Management: Create, chat, and manage AI agents
File Operations: Upload, download, and manage files with signed URLs
Site Building: Visual page builder and component libraries
Automation: Scenarios, schedules, and webhooks
Direct AI: Model access without agent wrappers
Brightsy CLI Integration
The Brightsy CLI (@brightsy/cli) provides command-line access to platform features and works seamlessly with MCP:
# Agent interactions (similar to MCP chat tools)
brightsy chat "Hello!" # Chat with default agent
brightsy chat --agent <id> "Message" # Chat with specific agent
brightsy chat --model gpt_5_2 "Query" # Direct model completion
brightsy agents # List available agents
# Content management
brightsy records list blog-post # List records
brightsy records create blog-post # Create record
brightsy record-types list # List schemas
# Component development
brightsy create my-components # Scaffold library
brightsy connect # Link to site
brightsy push --dev # Deploy to dev
brightsy push # Deploy to production
MCP + CLI Workflow
MCP and CLI complement each other:
Use MCP for AI-assisted discovery and complex operations
Use CLI for repetitive tasks and scripting
Both share the same authentication and account context
Example workflow:
# MCP discovers available record types
# MCP: "You have 'blog-post' and 'product' record types"
# CLI creates content based on MCP guidance
brightsy records create blog-post --data '{"title":"New Post","content":"..."}'
# MCP helps with deployment
# MCP: "Your component library is ready. Run 'brightsy push' to deploy"
Chat Session Management
Stateless Mode (Default)
By default, each chat is independent:
No chat_id is provided
Agent has no memory of previous messages
Best for one-off queries
Stateful Mode
To maintain conversation history:
Provide a chat_id to continue a conversation
The MCP client automatically manages the chat_id
Sessions expire after 1 hour of inactivity
Active sessions refresh their expiration on every message
Session Isolation
Each user's chats are completely isolated
Team members can't access each other's conversations
Redis provides persistent storage across server restarts
Advanced Features
UI Tool Auto-Handling
When agents use UI tools (like show_buttons or present_content), the MCP server automatically:
Detects the UI tool call
Generates a mock response
Continues the conversation seamlessly
This allows agents designed for web interfaces to work through MCP without modification.
Sliding Expiration
Chat sessions use Redis with sliding expiration:
Sessions expire after 1 hour of inactivity
Every message resets the timer
Active conversations never expire
Old sessions auto-cleanup
Concurrent Conversations
You can maintain multiple simultaneous conversations:
Each has a unique chat_id
Switch between conversations seamlessly
Clear individual conversations when done
Troubleshooting
Brightsy Desktop Issues
Problem: "brightsy-desktop-mcp command not found"
Solutions:
Ensure Brightsy Desktop is installed and running
Restart your AI tool (Cursor/Claude Desktop) after installing Desktop
Check that Brightsy Desktop is logged in to your account