当前位置: 首页 > news >正文

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
    在这里插入图片描述

相关文章:

  • HTMLcss实现网站抽奖
  • # 构建词汇表:自然语言处理中的关键步骤
  • Cesium实现地形可视域分析
  • leetcode0106. 从中序与后序遍历序列构造二叉树-medium
  • @Transactional的一点理解
  • 专业软件开发全流程实践指南
  • BUUCTF-[ACTF新生赛2020]SoulLike
  • DbCreateHelper数据库创建指南
  • SQL进阶知识:八、性能调优
  • C语言面试高频题——define 和typedef 的区别?
  • 施磊老师基于muduo网络库的集群聊天服务器(七)
  • 全链路自动化AIGC内容工厂:构建企业级智能内容生产系统
  • 32.768kHz晶振详解:作用、特性及与其他晶振的区别
  • STM32八股【6】-----CortexM3的双堆栈(MSP、PSP)设计
  • 金仓数据库征文-政务领域国产化数据库更替:金仓 KingbaseES 应用实践
  • 游戏引擎学习第244天: 完成异步纹理下载
  • ASP.NET MVC​ 入门指南二
  • C++11介绍
  • 语音合成之六端到端TTS模型的演进
  • mysql知识总结 索引篇
  • 从中央政治局会议看经济工作着力点:以高质量发展的确定性应对外部不确定性
  • 猿辅导回应一员工离世:发生意外期间其所在团队没有安排加班
  • 下周起上海浦东将投放5000万元消费券,预计分五周发放
  • 泽连斯基提议乌俄“立即、全面和无条件”停火
  • 上海常务副市长:持续提升跨境投融资便利化水平,稳步扩大金融领域的制度型开放
  • 特朗普激发加拿大爱国热情之下:大选提前投票人数创纪录,魁北克分离情绪被冲淡