用于与Glide API(v1及v2)交互的模型上下文协议服务器。
set_api_version: 配置API版本和认证get_app: 获取应用信息get_tables: 列出应用表get_table_rows: 获取表格数据add_table_row: 添加新行update_table_row: 更新现有行服务器支持通过MCP设置文件中的环境变量进行安全配置。在MCP设置文件中添加您的API凭证:
{
"mcpServers": {
"glide-api": {
"command": "node",
"args": ["path/to/build/index.js"],
"env": {
"GLIDE_API_KEY": "your-api-key-here",
"GLIDE_API_VERSION": "v2" // 或者 "v1" 对于v1 API
}
}
}
}
这种方法通过以下方式确保您的API密钥安全:
虽然推荐使用环境变量来配置服务器,但您也可以在运行时使用set_api_version工具设置或覆盖API版本和密钥:
use_mcp_tool({
server_name: "glide-api",
tool_name: "set_api_version",
arguments: {
version: "v2",
apiKey: "your-api-key"
}
});
注意:运行时配置将在当前会话中覆盖任何环境变量。
安装依赖项:
npm install
构建服务器:
npm run build
开发时自动重建:
npm run watch
use_mcp_tool({
server_name: "glide-api",
tool_name: "get_app",
arguments: {
appId: "your-app-id"
}
});
use_mcp_tool({
server_name: "glide-api",
tool_name: "add_table_row",
arguments: {
appId: "your-app-id",
tableId: "your-table-id",
values: {
column1: "value1",
column2: "value2"
}
}
});