让 AI 模型调用飞书 API,读取飞书文档并通过机器人收发消息。
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add sdd330 --env FEISHU_APP_ID='<FEISHU_APP_ID>' --env FEISHU_APP_SECRET='<FEISHU_APP_SECRET>' -- node dist/index.js~/.codex/config.toml
[mcp_servers.sdd330]
command = "node"
args = ["dist/index.js"]
env = { FEISHU_APP_ID = "<FEISHU_APP_ID>", FEISHU_APP_SECRET = "<FEISHU_APP_SECRET>" }
# codex mcp add sdd330 --env FEISHU_APP_ID='<FEISHU_APP_ID>' --env FEISHU_APP_SECRET='<FEISHU_APP_SECRET>' -- node dist/index.js~/.cursor/mcp.json
{
"mcpServers": {
"sdd330": {
"command": "node",
"args": [
"dist/index.js"
],
"env": {
"FEISHU_APP_ID": "<FEISHU_APP_ID>",
"FEISHU_APP_SECRET": "<FEISHU_APP_SECRET>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"sdd330": {
"type": "stdio",
"command": "node",
"args": [
"dist/index.js"
],
"env": {
"FEISHU_APP_ID": "<FEISHU_APP_ID>",
"FEISHU_APP_SECRET": "<FEISHU_APP_SECRET>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"sdd330": {
"command": "node",
"args": [
"dist/index.js"
],
"env": {
"FEISHU_APP_ID": "<FEISHU_APP_ID>",
"FEISHU_APP_SECRET": "<FEISHU_APP_SECRET>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"sdd330": {
"command": "node",
"args": [
"dist/index.js"
],
"env": {
"FEISHU_APP_ID": "<FEISHU_APP_ID>",
"FEISHU_APP_SECRET": "<FEISHU_APP_SECRET>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"sdd330": {
"command": "node",
"args": [
"dist/index.js"
],
"env": {
"FEISHU_APP_ID": "<FEISHU_APP_ID>",
"FEISHU_APP_SECRET": "<FEISHU_APP_SECRET>"
}
}
}
}需要的环境变量
FEISHU_APP_IDFEISHU_APP_SECRET
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。