欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 健康 > 养生 > Cursor 配置 MCP Tool

Cursor 配置 MCP Tool

2025/4/26 15:18:09 来源:https://blog.csdn.net/bestcxx/article/details/147516158  浏览:    关键词:Cursor 配置 MCP Tool

文章目录

    • 1、MCP Tool 的集合
    • 2、一个 demo :Sequential Thinking
      • 2.1、搜索一个 MCP Tool 获取 command 命令
      • 2.2、在 Cursor 配置
      • 2.3、配置状态检查与修正(解决网络问题)
        • 检查
        • 解决办法
      • 2.4、使用

1、MCP Tool 的集合

https://smithery.ai/

2、一个 demo :Sequential Thinking

我们以 Sequential Thinking 这个 MCP Server 作为 demo 配置一下

2.1、搜索一个 MCP Tool 获取 command 命令

在这里插入图片描述
https://smithery.ai/server/@smithery-ai/server-sequential-thinking
在这里插入图片描述
得到:

npx -y @smithery/cli@latest install @smithery-ai/server-sequential-thinking --client cursor --key d17b0085-f937-4a71-b723-cc2671612b9a

2.2、在 Cursor 配置

Name 是自定义的
Type 选择 command
Command 直接填写上面得到的

npx -y @smithery/cli@latest install @smithery-ai/server-sequential-thinking --client cursor --key d17b0085-f937-4a71-b723-cc2671612b9a

在这里插入图片描述

2.3、配置状态检查与修正(解决网络问题)

检查

配置完毕后,如果前面的点是绿色的,表示正常,否则表示配置没有生效。
在这里插入图片描述

解决办法

npx -y @smithery/cli@latest install @smithery-ai/server-sequential-thinking --client cursor --key d17b0085-f937-4a71-b723-cc2671612b9a

中 @xxx 部分 替换为 github 开源项目中提供的原始命令
在这里插入图片描述
比如下面 https://github.com/smithery-ai/reference-servers/tree/main/src/sequentialthinking
你可以获取的命令就是

npx -y @modelcontextprotocol/server-sequential-thinking

在这里插入图片描述

npx -y @smithery/cli@latest install @smithery-ai/server-sequential-thinking --client cursor --key d17b0085-f937-4a71-b723-cc2671612b9a

=>

npx -y @modelcontextprotocol/server-sequential-thinking --client cursor --key d17b0085-f937-4a71-b723-cc2671612b9a

然后就正常了
在这里插入图片描述

2.4、使用

  • 比如我再配置一个热点新闻
npx -y @wopal/mcp-server-hotnews --client cursor --key d17b0085-f937-4a71-b723-cc2671612b9a

在这里插入图片描述

  • 然后使用
  • 可以发现,我的指令,直接调用了查询新闻的 MCP tool
    在这里插入图片描述

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

热搜词