remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Integrations
Uses environment variables for configuration management, allowing secure storage of API keys and other sensitive data needed for Xano API interactions.
Provides repository management for the MCP server codebase, with instructions for cloning and contributing to the project.
Manages dependencies and provides scripts for building, developing, and running the MCP server.
Xano MCP 服务器
用于与 Xano API 交互的模型上下文协议 (MCP) 服务器实现。该服务器提供通过 MCP 接口管理 Xano 数据库操作的工具和资源。
特征
- 使用 Xano API 进行安全身份验证
- 使用 TypeScript 进行类型安全的 API 交互
- 基于环境的配置
- MCP 兼容接口
- 工作区管理工具
- 表内容操作(创建、读取、更新)
- 使用详细信息改进错误处理
安装
Copy
配置
- 复制示例环境文件:
Copy
- 使用您的 Xano 凭证更新
.env
文件:
Copy
发展
Copy
项目结构
Copy
可用的 MCP 工具
工作区工具
get_workspaces
:列出所有可用的工作区
表格工具
create_table
:在工作区中创建新表get_table_content
:从支持分页的表中获取内容add_table_content
:向表中添加新内容update_table_content
:更新表中现有内容get_all_tables
:列出工作区中的所有表及其详细信息
使用示例
使用工作区
Copy
管理表
Copy
环境变量
多变的 | 描述 | 必需的 | 默认 |
---|---|---|---|
XANO_API_密钥 | 您的 Xano API 身份验证密钥 | 是的 | - |
XANO_API_URL | Xano API 端点 URL | 是的 | - |
NODE_ENV | 环境(开发/生产) | 不 | 发展 |
API 超时 | API 请求超时(以毫秒为单位) | 不 | 10000 |
错误处理
服务器提供以下详细的错误消息:
- 参数无效
- 身份验证失败
- API 请求失败
- 内容验证错误
- 未知工具请求
安全
- 环境变量用于敏感配置
- 包含 TruffleHog 配置以防止秘密泄露
- API 密钥和敏感数据永远不会提交到存储库
贡献
- 创建功能分支
- 进行更改
- 提交拉取请求
执照
国际学习中心
You must be authenticated.
通过模型上下文协议 (MCP) 接口实现与 Xano API 的交互,为 Xano 数据库操作提供安全且类型安全的管理。
- Features
- Installation
- Configuration
- Development
- Project Structure
- Available MCP Tools
- Usage Examples
- Environment Variables
- Error Handling
- Security
- Contributing
- License