返回市场
锚点-MCP

锚点-MCP

作者:honey-guard3 星标更新:2025-03-04

项目介绍

Anchor MCP

License: GPL v3 Crates.io <img alt="GitHub Actions Workflow Status" src="https://img.shields.io/github/actions/workflow/status/honey-guard/anchor-mcp/rust.yml">

这是一个用于Anchor程序的MCP CLI服务器模板。

模型上下文协议(MCP)是一个开放协议,它使大型语言模型(LLM)应用程序与外部数据源和工具之间的无缝集成成为可能。无论您是在构建AI驱动的IDE、增强聊天界面,还是创建自定义的AI工作流,MCP都提供了一种标准化的方式来连接LLMs及其所需的上下文。

此服务器使用mcp-rs-template.

CLI选项

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

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

  1. 编辑claude_desktop_config.json: Claude Desktop -> 设置 -> 开发者 -> 编辑配置
  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命令。

参考资料

** Solana Fender: https://github.com/honey-guard/solana-fender ** mcp-rs-template: https://github.com/linux-china/mcp-rs-template