MCP CLI 服务器模板

Anchor MCP 是一个用于 Anchor 程序的 MCP CLI 服务器模板,提供标准化的方式连接 LLM 与外部数据源和工具。

  • by honey-guard
  • Rust
  • 本地部署
  • 3 星标
  • 更新于
在 GitHub 查看 honey-guard/anchor-mcp

使用说明

锚定MCP

这是Anchor程序的MCP CLI服务器模板。

模型上下文协议(MCP)是一种开放协议,可实现LLM应用程序之间的无缝集成 以及外部数据源和工具。无论你是在构建一个基于人工智能的IDE,还是在增强聊天界面, 或者创建自定义AI工作流,MCP提供了一种标准化的方式将LLM与它们所需的上下文连接起来。

此服务器使用 mcp-rs模板。

CLI选项

  • --mcp:启用MCP服务器
  • --prompts:显示提示
  • --tools:显示工具

如何在Claude Desktop中使用Anchor MCP CLI服务器?

  1. 编辑 claude_desktop_config.json:克劳德桌面-> Settings -> Developer -> Edit Config
  2. 将以下配置添加到 servers 章节:
{
   "mcpServers": {
      "security_check_program": {
         "command": "security_check_program",
         "args": [
            "--mcp"
         ]
      },
      "security_check_file": {
         "command": "security_check_file",
         "args": [
            "--mcp"
         ]
      }
   }
}

如果您想检查MCP日志,请使用 tail -n 20 -f ~/Library/Logs/Claude/mcp*.log.

参考文献

**索拉纳护舷:https://github.com/honey-guard/solana-fender **mcp温度https://github.com/linux-china/mcp-rs-template