Flux DevSAFE
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
一个基于端脑云 Flux 模型 API 的 Model Context Protocol (MCP) 服务器实现。
本项目使用了端脑云的 API 服务,为用户提供强大的 AI 能力支持。
🎁 福利时间 使用我的邀请链接 https://cephalon.cloud/share/register-landing?invite_id=X46Dzv 或邀请码 X46Dzv 注册端脑云, 可以获得专属注册奖励,额外免费赠送 5000 端脑值!技术栈
- TypeScript
- Node.js
- 端脑云 API
快速开始
环境要求
- Node.js 16+
- npm 或 yarn
- Windows 或 MacOS 系统
安装依赖
# Windows/MacOS 通用命令 npm install
构建项目
# Windows/MacOS 通用命令 npm run build
开发模式
启动带有自动重新构建的开发模式:
# Windows/MacOS 通用命令 npm run watch
Claude Desktop 配置说明
要在 Claude Desktop 中使用本服务器,需要添加服务器配置。配置文件位置因操作系统而异:
MacOS
配置文件路径:
~/Library/Application Support/Claude/claude_desktop_config.json
Windows
配置文件路径:
%APPDATA%\Claude\claude_desktop_config.json
配置内容示例:
Windows:
{
"mcpServers": {
"flux-dev": {
"command": "C:\\path\\to\\flux-dev\\build\\index.js"
}
}
}MacOS:
{
"mcpServers": {
"flux-dev": {
"command": "/path/to/flux-dev/build/index.js"
}
}
}注意:
- Windows 路径使用双反斜杠
\\或单正斜杠/ - MacOS 路径使用单正斜杠
/ - 请确保路径指向实际安装位置
调试指南
由于 MCP 服务器通过标准输入输出(stdio)通信,调试可能会比较困难。我们推荐使用 MCP Inspector 工具:
# Windows/MacOS 通用命令 npm run inspector
Inspector 将提供一个浏览器访问地址,用于访问调试工具。
常见问题
- Windows 系统权限问题
- 如果遇到权限相关错误,请尝试以管理员身份运行命令提示符或 PowerShell
- MacOS 系统权限问题
- 如果遇到 "Permission denied" 错误,请确保已正确设置执行权限:
chmod +x build/index.js
许可证
本项目采用 MIT 许可证,详见 LICENSE 文件。
4e3aff2020c9OBSERVED · 2026-10-08Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.
claude mcp add flux-dev --env CEPHALON_API_KEY=${CEPHALON_API_KEY} -- npx -y [email protected]{
"mcpServers": {
"flux-dev": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"CEPHALON_API_KEY": "${CEPHALON_API_KEY}"
}
}
}
}Exposed tools (1)
1 read · 0 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
generate_image | read | Generate an image using ComfyUI model |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- declared (1 observation(s))
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (1)
axios, @types/node, typescript
Gates applied: no_behavioural_pass.
4e3aff2020c9full audit observations/trust-audit/mcp-server/nicekate__flux-dev.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | 4e3aff2020c9 | SAFE | B | 89 | first audit |
Questions
What tools does Flux Dev expose?
1 in total: 1 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Flux Dev safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does Flux Dev need?
It reads CEPHALON_API_KEY from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does Flux Dev run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as flux-dev at 0.1.0.
How current is this page?
The grade is for one exact copy of the source (4e3aff2020c9), read on 2026-10-08. The repository is watched and re-audited when it changes.