mcp-nhost是一个用于与Nhost云项目和服务交互的模型上下文协议(MCP)服务器实现,它通过模型上下文协议为管理Nhost云项目提供统一接口,让您能无缝地与Nhost云服务交互,并提供强大工具来管理和配置项目。
mcp-nhost旨在通过模型上下文协议为管理Nhost云项目提供统一接口,让您可以无缝地与Nhost云服务交互,提供了一套强大的工具来管理和配置项目。
以下是当前通过MCP界面公开的工具:
MCP服务器在设计时考虑了安全性,提供了现有GraphQL权限之外的额外保护层。关键安全功能包括:
MCP服务器的一个关键安全优势是能够精确指定允许通过的操作,即使对于具有更广泛项目权限的用户也是如此:
[[projects]]
subdomain = "my-blog"
region = "eu-central-1"
pat = "nhp_project_specific_pat"
allow_queries = ["getBlogs", "getComments"]
allow_mutations = ["insertBlog", "insertComment"]
通过上述配置,LLM只能在用户具备更广泛权限的情况下,执行指定的查询和突变操作。
要安装mcp-nhost,请运行以下命令:
git clone https://github.com/your-username/mcp-nhost.git
cd mcp-nhost
cargo install --path .
在config.toml文件中,您可以指定允许的查询和突变。例如:
[[projects]]
subdomain = "my-blog"
region = "eu-central-1"
pat = "your_project_access_token"
allow_queries = ["getPost", "getComments"]
allow_mutations = ["insertPost", "insertComment"]
对于Cursor,请在config.toml中添加以下内容:
[["projects"]]
subdomain = "my-blog"
region = "eu-central-1"
pat = "your_project_access_token"
allow_queries = ["getPost", "getComments"]
allow_mutations = ["insertPost", "insertComment"]
运行以下命令查看如何使用CLI:
mcp-nhost --help
如有任何建议或功能请求,请随时打开问题进行讨论。
我们欢迎为mcp-nhost做贡献!如果您有任何建议、问题报告或功能请求,请随时打开问题或提交拉取请求。
感谢您的支持与合作!