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

使用cline(VSCode插件)、continue(IDEA插件)、cherry-studio玩转MCP

安装环境

uv(python)

为什么不用pip?

使用 uv 时无需进行特定安装。使用 uvx 直接运行。
⚡️ 比pip快10-100x
在这里插入图片描述

https://github.com/pypa/pip
https://ossinsight.io/analyze/pypa/pip?vs=astral-sh%2Fuv#overview

安装

https://github.com/astral-sh/uv?tab=readme-ov-file#installation

# On macOS and Linux.
curl -LsSf https://astral.sh/uv/install.sh | sh
source $HOME/.local/bin/env

downloading uv 0.6.12 x86_64-unknown-linux-gnu
no checksums to verify
installing to /home/d/.local/bin
  uv
  uvx
everything's installed!

To add $HOME/.local/bin to your PATH, either restart your shell or run:

    source $HOME/.local/bin/env (sh, bash, zsh)
    source $HOME/.local/bin/env.fish (fish)
WARNING: The following commands are shadowed by other commands in your PATH: uv uvx

nvm(nodejs)

https://github.com/nvm-sh/nvm?tab=readme-ov-file#install–update-script

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.2/install.sh | bash

=> Downloading nvm from git to '/home/d/.nvm'
=> 正克隆到 '/home/d/.nvm'...
remote: Enumerating objects: 382, done.
remote: Counting objects: 100% (382/382), done.
remote: Compressing objects: 100% (325/325), done.
remote: Total 382 (delta 43), reused 178 (delta 29), pack-reused 0 (from 0)
接收对象中: 100% (382/382), 386.80 KiB | 426.00 KiB/s, 完成.
处理 delta 中: 100% (43/43), 完成.
* (头指针在 FETCH_HEAD 分离)
  master
=> Compressing and cleaning up git repository

=> Appending nvm source string to /home/d/.bashrc
=> Appending bash_completion source string to /home/d/.bashrc
=> Close and reopen your terminal to start using nvm or run the following to use it now:

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion

cline插件

一个一个安装太费劲,我给大家准备好了。其中windows麻烦点,需要linux命令前加上cmd /c xxx
在这里插入图片描述

window配置如下

{
  "mcpServers": {
    
    "time": {
      "disabled": false,
      "timeout": 60,
      "command": "cmd",
      "args": [
        "/c",
        "uvx",
        "mcp-server-time",
        "--local-timezone=Asia/Shanghai"
      ],
      "env": {},
      "transportType": "stdio"
    },
    "filesystem": {
      "timeout": 60,
      "command": "cmd",
      "args": [
        "/c",
        "npx",
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "D://SourceCode//dcl-modules"
      ],
      "transportType": "stdio"
    },
    "git": {
      "timeout": 60,
      "command": "cmd",
      "args": [
        "/c",
        "uvx",
        "mcp-server-git",
        "--repository",
        "D://SourceCode//dcl-modules"
      ],
      "transportType": "stdio"
    },
    "github": {
      "command": "cmd",
      "args": [
        "/c",
        "npx -y",
        "@modelcontextprotocol/server-github"
      ],
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "github_pat_xxx"
      }
    },
    "browser-tools": {
      "timeout": 60,
      "command": "cmd",
      "args": [
        "/c",
        "npx -y @agentdeskai/browser-tools-mcp@1.2.0"
      ],
      "transportType": "stdio"
    },
    "mcp-playwright": {
      "disabled": false,
      "timeout": 60,
      "command": "cmd",
      "args": [
        "/c",
        "npx",
        "-y",
        "@executeautomation/playwright-mcp-server"
      ],
      "env": {},
      "transportType": "stdio"
    },
    "sequentialthinking": {
      "disabled": false,
      "timeout": 60,
      "command": "cmd",
      "args": [
        "/c",
        "npx",
        "-y",
        "@modelcontextprotocol/server-sequential-thinking"
      ],
      "env": {},
      "transportType": "stdio"
    },
    "memory": {
      "timeout": 60,
      "command": "cmd",
      "args": [
        "/c",
        "npx",
        "-y",
        "@modelcontextprotocol/server-memory"
      ],
      "env": {
        "MEMORY_FILE_PATH": "D://SourceCode//memory.json"
      },
      "transportType": "stdio"
    }
  }
}

linux配置如下

{
  "mcpServers": {
    "time": {
      "autoApprove": [
      ],
      "disabled": false,
      "timeout": 60,
      "command": "uvx",
      "args": [
        "mcp-server-time",
        "--local-timezone=Asia/Shanghai"
      ],
      "env": {},
      "transportType": "stdio"
    },
    "filesystem": {
      "autoApprove": [
      ],
      "timeout": 60,
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "/home/d/SourceCode/homelab"
      ],
      "transportType": "stdio"
    },
    "git": {
      "autoApprove": [
      ],
      "timeout": 60,
      "command": "uvx",
      "args": [
        "mcp-server-git",
        "--repository",
        "/home/d/SourceCode/homelab"
      ],
      "transportType": "stdio"
    },
    "github": {
      "autoApprove": [
      ],
      "timeout": 60,
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-github"
      ],
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "github_pat_xxx"
      },
      "transportType": "stdio"
    },
    "browser-tools": {
      "autoApprove": [
      ],
      "timeout": 60,
      "command": "npx",
      "args": [
        "-y @agentdeskai/browser-tools-mcp@1.2.0"
      ],
      "transportType": "stdio"
    },
    "mcp-playwright": {
      "autoApprove": [
      ],
      "disabled": false,
      "timeout": 60,
      "command": "npx",
      "args": [
        "-y",
        "@executeautomation/playwright-mcp-server"
      ],
      "env": {},
      "transportType": "stdio"
    },
    "sequentialthinking": {
      "autoApprove": [
      ],
      "disabled": false,
      "timeout": 60,
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-sequential-thinking"
      ],
      "env": {},
      "transportType": "stdio"
    },
    "memory": {
      "autoApprove": [
      ],
      "timeout": 60,
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-memory"
      ],
      "env": {
        "MEMORY_FILE_PATH": "/home/d/memory.json"
      },
      "transportType": "stdio"
    }
  }
}

测试MCP:time

现在几点了?

在这里插入图片描述

伦敦现在几点了?

在这里插入图片描述

当纽约是下午四点,那伦敦是几点?

在这里插入图片描述

将伦敦时间上午 9:30 转换为纽约时间

在这里插入图片描述

continue插件

一堆bug,等更新后再说

cherry-studio

安装环境:bun和uv

https://docs.cherry-ai.com/advanced-basic/mcp/install
https://github.com/oven-sh/bun/releases
https://github.com/astral-sh/uv/releases

linux和windows配置

和上面的配置一样,粘贴进去,然后保存,再打开,只是需要自己打开"isActive": true
在这里插入图片描述

模型配置

ollama中 qwen2.5:14b默认不会勾选工具,会导致页面上没有MCP选项。
在这里插入图片描述

测试MCP:filesystem

homelab下有哪些文件?

在这里插入图片描述

http://www.dtcms.com/a/121293.html

相关文章:

  • 上门预约洗鞋店小程序都具备哪些功能?
  • 3DMax中模型解组
  • windows系统桌面快捷箭头去掉、恢复方式,支持win10、win11
  • zk源码—4.会话的实现原理二
  • React Native 0.79发布 - 更快的工具及更多改进
  • Ant Design Menu 一级菜单超长文本悬浮优化方案
  • Maven error:Could not transfer artifact
  • 怎么查看苹果手机和ipad的设备信息和ios udid
  • 现在转测开来得及吗
  • R语言中的rvest库写个视频爬虫通用代码
  • 蓝桥杯补题
  • (1)英特尔 RealSense T265(三)
  • linux环境中部署node环境运行node应用
  • 重温hot100-day2
  • dav_1_MySQL数据库排查cpu消耗高的sql
  • C语言for循环嵌套if相关题目
  • Flink框架:批处理和流式处理与有界数据和无界数据之间的关系
  • 数据库视图讲解(view)
  • 8.3.1 MenuStrip(菜单)控件
  • 基于window11安装NACOS2.5.1的简介
  • Spark Core
  • 【Axure元件分享】移动端滑动拨盘地区级联选择器
  • 【c++11】c++11新特性(上)(列表初始化、右值引用和移动语义、类的新默认成员函数、lambda表达式)
  • 在Windows上安装Ubuntu24.04虚拟机
  • 全局端对端问题及应对方案
  • STM32F103VET6 芯片的主Flash 内存空间大小计算
  • 虚幻5的C++调试踩坑
  • 危险化学品标志速查手册(27个完整版)
  • 文件备份程序中的线程池管理:为何限制子线程数量?
  • Linux Makefile-概述、语句格式、编写规则、多文件编程、Makefile变量分类:自定义变量、预定义变量