Sentient Brain Smithery
Multi-agent AI system for code development with orchestration, architecture planning, code analysis, semantic knowledge search, and intelligent debugging capabilities powered by SurrealDB and Groq.
README
🧠 Sentient Brain Multi-Agent System for Smithery.ai
Advanced AI Code Developer with Multi-Agent Architecture 🚀
Last deployment: 2025-01-27
Advanced AI Code Developer system leveraging multi-agent architecture with SurrealDB unified data layer. Designed for seamless deployment on Smithery.ai platform.
🚀 Features
- Ultra Orchestrator: Master agent coordinating multi-agent workflows
- Architect Agent: Intelligent project design and planning
- Code Analysis: Deep code understanding and semantic indexing
- Knowledge Graph: Unified memory layer with semantic search
- Debug & Refactor: Intelligent code improvement and error resolution
- Failure Prevention: Advanced mechanisms to prevent common AI failures
🏗️ Architecture
Multi-Agent Framework
- Ultra Orchestrator: Routes tasks and manages agent coordination
- Architect Agent: Handles project planning and design
- Code Analysis Agent: Provides deep code understanding
- Knowledge Search Agent: Semantic search across project knowledge
- Debug & Refactor Agent: Code improvement and error resolution
Technology Stack
- Runtime: Python 3.11+ with FastAPI
- Database: SurrealDB for unified data layer
- LLM: Groq API for high-performance inference
- Framework: LangGraph for agent workflows
- Protocol: MCP (Model Context Protocol) compatible
📦 Smithery.ai Deployment
This package is optimized for deployment on Smithery.ai platform using the Custom Deploy method.
Prerequisites
- Smithery.ai account
- GitHub repository
- Required API keys (Groq, optional Google)
Deployment Steps
-
Repository Setup
git clone <your-repo> cd sentient-brain-smithery -
Configuration
- Ensure
smithery.yamlandDockerfileare in root - Configure required environment variables in Smithery dashboard
- Ensure
-
Deploy on Smithery
- Connect your GitHub repository to Smithery
- Navigate to Deployments tab
- Click "Deploy" to build and host your container
Required Configuration
| Variable | Description | Required | Default |
|---|---|---|---|
GROQ_API_KEY |
Groq API key for LLM inference | Yes | - |
SURREAL_URL |
SurrealDB connection URL | Yes | ws://localhost:8000/rpc |
SURREAL_USER |
SurrealDB username | Yes | root |
SURREAL_PASS |
SurrealDB password | Yes | root |
GOOGLE_API_KEY |
Google GenAI API key | No | - |
🛠️ Available Tools
Core Tools
-
sentient-brain/orchestrate
- Master coordination and workflow management
- Analyzes user intent and routes to appropriate agents
-
sentient-brain/architect
- Project design and architecture planning
- Technology stack recommendations
-
sentient-brain/analyze-code
- Deep code analysis and understanding
- Structure, quality, and dependency analysis
-
sentient-brain/search-knowledge
- Semantic search across project knowledge graph
- Multi-modal search (code, docs, concepts)
-
sentient-brain/debug-assist
- Intelligent debugging and code improvement
- Error resolution and refactoring suggestions
🔧 Usage Examples
Basic Orchestration
{
"tool": "sentient-brain/orchestrate",
"arguments": {
"query": "I want to build a REST API for user authentication",
"context": {
"project_type": "web_api",
"tech_stack": ["python", "fastapi"]
}
}
}
Project Architecture
{
"tool": "sentient-brain/architect",
"arguments": {
"project_type": "web_api",
"requirements": "User authentication with JWT tokens",
"tech_stack": ["python", "fastapi", "postgresql"]
}
}
Knowledge Search
{
"tool": "sentient-brain/search-knowledge",
"arguments": {
"query": "authentication middleware implementation",
"node_type": "code_chunk",
"limit": 10
}
}
🔍 Health Check
The server provides a health check endpoint:
GET /- Basic server statusGET /mcp- MCP protocol info and available tools
🐛 Debugging
Common Issues
-
Connection Issues
- Verify SurrealDB connection parameters
- Check network connectivity
-
API Key Issues
- Ensure Groq API key is valid and has sufficient credits
- Verify API key format and permissions
-
Configuration Issues
- Check Smithery configuration parameters
- Verify environment variable mapping
Logs
The server uses structured logging with configurable levels:
DEBUG: Detailed debugging informationINFO: General operational messagesWARNING: Warning messagesERROR: Error conditions
📈 Performance
- Optimized Docker: Multi-stage build for minimal image size
- Async Operations: Full async/await support for high concurrency
- Caching: Intelligent caching for frequently accessed data
- Connection Pooling: Efficient database connection management
🔒 Security
- Non-root User: Container runs as non-privileged user
- Input Validation: Comprehensive input validation using Pydantic
- Rate Limiting: Built-in rate limiting for API endpoints
- Secure Defaults: Security-first configuration defaults
📚 Documentation
🤝 Support
- Issues: GitHub Issues
- Documentation: docs.sentient-brain.ai
- Email: support@sentient-brain.ai
📄 License
MIT License - see LICENSE file for details.
Ready for Smithery.ai deployment! 🚀
🇻🇳 Tài liệu Tiếng Việt
🧠 Công cụ Cốt lõi
-
sentient-brain/orchestrate
- Điều phối chính và quản lý luồng công việc
- Phân tích ý định người dùng và chuyển tiếp đến các agent phù hợp
-
sentient-brain/architect
- Thiết kế dự án và lập kế hoạch kiến trúc
- Đề xuất lựa chọn công nghệ
-
sentient-brain/analyze-code
- Phân tích mã nguồn sâu và hiểu mã
- Phân tích cấu trúc, chất lượng và phụ thuộc
-
sentient-brain/search-knowledge
- Tìm kiếm ngữ nghĩa trên đồ thị tri thức dự án
- Tìm kiếm đa phương tiện (mã nguồn, tài liệu, khái niệm)
-
sentient-brain/debug-assist
- Gỡ lỗi thông minh và nâng cao chất lượng mã
- Gợi ý sửa lỗi và refactor
🔧 Ví dụ Sử Dụng
Điều phối cơ bản
{
"tool": "sentient-brain/orchestrate",
"arguments": {
"query": "Tôi muốn xây dựng REST API cho xác thực người dùng",
"context": {
"project_type": "web_api",
"tech_stack": ["python", "fastapi"]
}
}
}
Thiết kế Kiến trúc Dự án
{
"tool": "sentient-brain/architect",
"arguments": {
"project_type": "web_api",
"requirements": "Xác thực người dùng bằng JWT",
"tech_stack": ["python", "fastapi", "postgresql"]
}
}
Tìm kiếm Tri thức
{
"tool": "sentient-brain/search-knowledge",
"arguments": {
"query": "triển khai middleware xác thực",
"node_type": "code_chunk",
"limit": 10
}
}
🔍 Kiểm tra Sức khỏe
Máy chủ cung cấp các endpoint kiểm tra sức khỏe:
GET /- Kiểm tra trạng thái cơ bảnGET /mcp- Thông tin giao thức MCP và danh sách công cụ khả dụng
🐛 Gỡ Lỗi
Các Vấn Đề Thường Gặp
-
Kết nối đến CSDL
- Kiểm tra lại thông tin kết nối SurrealDB
- Xác nhận kết nối mạng
-
Vấn đề API Key
- Đảm bảo API key Groq hợp lệ và còn hạn mức sử dụng
- Kiểm tra định dạng và quyền truy cập của API key
-
Vấn đề Cấu hình
- Kiểm tra lại các tham số cấu hình Smithery
- Đảm bảo ánh xạ biến môi trường chính xác
Ghi log
Máy chủ sử dụng logging có cấu trúc với các mức độ cấu hình:
DEBUG: Thông tin gỡ lỗi chi tiếtINFO: Thông báo hoạt động chungWARNING: Cảnh báoERROR: Lỗi nghiêm trọng
📈 Hiệu Năng
- Docker tối ưu: Multi-stage build giúp giảm kích thước image
- Hoạt động bất đồng bộ: Hỗ trợ async/await cho hiệu suất cao
- Bộ nhớ đệm: Cache thông minh cho dữ liệu truy cập thường xuyên
- Kết nối pooling: Quản lý kết nối CSDL hiệu quả
🔒 Bảo Mật
- Chạy không quyền root: Container chạy bằng user không đặc quyền
- Kiểm tra đầu vào: Sử dụng Pydantic để kiểm tra dữ liệu vào
- Giới hạn tốc độ: Tích hợp rate limiting cho các endpoint
- Cấu hình an toàn mặc định: Ưu tiên bảo mật từ đầu
📚 Tài liệu
🤝 Hỗ trợ
- Báo lỗi/Góp ý: GitHub Issues
- Tài liệu: docs.sentient-brain.ai
- Email: support@sentient-brain.ai
📄 Giấy phép
MIT License - xem file LICENSE để biết chi tiết.
Sẵn sàng triển khai trên Smithery.ai! 🚀
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。