shebang-mcp
shebang-mcp
一个 MCP 服务器和 CLI,用于托管页面、共享文件、生成短链接、运行 Postgres 数据库以及管理 API 密钥——全部通过一个 shb_… 密钥,适用于 shebang.pro 上的账户。
快速开始
Claude Code:
claude mcp add shebang -- npx -y github:New-Kringster/shebang-mcp
npx -y github:New-Kringster/shebang-mcp login任何其他基于 stdio 的 MCP 宿主,添加此服务器条目:
{
"mcpServers": {
"shebang": {
"command": "npx",
"args": ["-y", "github:New-Kringster/shebang-mcp"]
}
}
}然后在同一台机器的终端上运行一次 npx -y github:New-Kringster/shebang-mcp login(或直接设置 SHEBANG_API_KEY——参见环境变量)。
npm registry 发布已计划但尚未上线——在此之前请通过上面的 GitHub 简写形式安装。
Related MCP server: Modular MCP Server
登录流程
login 会针对 shebang 平台启动一个设备授权流程:
CLI 调用平台,取回一个短代码和一个验证 URL,并将两者打印出来——然后尝试自动打开你的浏览器访问该 URL。
在浏览器中,你登录你的 shebang.pro 账户(如果尚未登录),会看到一个页面,显示设备名称和终端打印的相同代码——确认它们一致,然后点击批准(或拒绝)。
CLI 一直在后台轮询;一旦批准,它会将颁发的密钥写入
~/.config/shebang/credentials.json(模式0600)并打印密钥的前缀。
此后,该机器上运行此服务器的每个宿主都会自动获取该密钥——无需逐项目配置。
$ npx -y github:New-Kringster/shebang-mcp login
Confirm this code in your browser:
x 7 w y 6 x 3 a
https://dash.shebang.pro/authorize-agent?code=x7wy6x3a
Opening your browser… (if nothing opens, visit the URL above)
Waiting for approval....
Logged in. Key: shb_examplexxxxxxxx… (master)
Saved to ~/.config/shebang/credentials.json
Your agent can now use shebang.shebang-mcp status 显示当前密钥的前缀和层级;shebang-mcp logout 删除本地凭据文件(它不会撤销密钥——见下文)。
密钥层级
主密钥 — 由
login铸造。对账户拥有完全权限:每个应用,以及铸造和撤销其他密钥。每次登录一个主密钥。应用密钥 — 限定于
page、serve、link、base的子集。通过key_create_app工具为子代理铸造一个,使其只获得所需访问权限;明文密钥仅在响应中显示一次。
一个密钥在作为调用认证方时不能撤销自身——请从另一个密钥(通常是铸造它的主密钥,通过 key_revoke 工具)或从 shebang.pro 仪表盘的账户页面撤销密钥。shebang-mcp logout 仅在本地忘记该密钥;它会打印同样的提醒。
工具参考
页面(sherpage)
工具 | 功能 |
| 从一组文件发布新页面 |
| 列出你的页面 |
| 获取单个页面的详情 |
| 更新标题/slug/过期时间/浏览量预算 |
| 更改访问级别(私有/密码/允许列表/公开) |
| 归档或恢复页面 |
| 永久删除页面及其文件 |
文件(sherserve)
工具 | 功能 |
| 将本地文件作为新对象上传 |
| 列出你上传的对象 |
| 按 slug 或 id 获取单个对象的详情 |
| 永久删除对象及其文件 |
短链接(sherlink)
工具 | 功能 |
| 列出跨应用的所有短链接 |
| 按 code、alias 或 id 获取单个链接的详情 |
| 更改访问权限、密码、过期时间或浏览量预算 |
| 设置或清除自定义 vanity 别名 |
| 删除链接及其包装的页面/文件——不可逆 |
数据库(sherbase)
工具 | 功能 |
| 开通一个新的 Postgres 项目(数据库 + 角色) |
| 列出你的数据库项目 |
| 针对项目运行一条 SQL 语句 |
| 永久删除项目——不可逆 |
密钥(仅主密钥)
工具 | 功能 |
| 铸造一个限定范围的应用密钥,通常用于子代理 |
| 列出账户上的所有密钥(绝不显示哈希或明文) |
| 按 id 永久撤销密钥——不可逆 |
OAuth(仅主密钥)
工具 | 功能 |
| 列出已注册的 sherlock OAuth 客户端 |
| 注册一个新的 OAuth 客户端(返回一次性密钥) |
环境变量
变量 | 用途 |
| 用于认证的 |
| 平台基础 URL;默认为 |
| 由 |
平台
本仓库中的 MCP 服务器和 CLI 仅是客户端——没有密钥,没有服务器代码,也没有任何直接与数据库通信的内容。平台本身(账户、密钥、页面、文件、链接、数据库、OAuth)运行在 shebang.pro;使用此客户端需要在该平台拥有账户。
许可证
MIT — 参见 LICENSE。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceA unified MCP server with composable tools for GitHub operations, file management, shell execution, kanban boards, Discord messaging, and package management. Features role-based security, HTTP/stdio transports, and a web-based development UI.
- FlicenseBqualityDmaintenanceA config-driven, zero-dependency MCP server with plugin architecture that enables filesystem operations, shell commands, HTTP requests, and utilities through simple JSON configuration.31
- AlicenseNot gradedqualityDmaintenanceA full-featured MCP server for local development with filesystem, shell, editor, session persistence, and security features.2MIT
- FlicenseNot gradedqualityCmaintenanceA production-ready MCP server providing file, system, math, and text utilities through a simple CLI client.
Related MCP Connectors
A MCP server built for developers enabling Git based project management with project and personal…
MCP server for interacting with the Supabase platform
MCP server for managing Prisma Postgres.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/New-Kringster/shebang-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server