AI Coding 必备
CC Switch
用于:
- 切换第三方API
- 添加管理MCP服务器
- 添加管理Skill
jq
下载后添加到PATH
rtk
降低token
Ripgrep
似乎AI助手的grep底层使用的都是ripgrep。但如果我们配置了通过vscode进行shell绕过权限,这时候需要支持rg所以这里手动安装。
cc-connect(for Discord/Wechat等)
- 安装
1
2
3
4
5
6
7
# 安装cc-connect(wechat需要使用beta版本cc-connect@beta)
npm install -g cc-connect
# 创建配置文件
# 创建C:\Users\Gumc\.cc-connect
# 将官方的config.example.toml复制到.cc-connect/config.toml
- [cc-connect配置文件]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# 配置config.toml,以下是我的配置(从discord获取token)
data_dir = ""
language = "zh"
[[projects]]
name = "framework"
[projects.agent]
type = "gemini"
[projects.agent.options]
mode = "yolo"
model = "gemini-3.1-flash-lite-preview"
work_dir = "C:\\Users\\Gumc\\Desktop\\WorkSpace\\framework"
[[projects.platforms]]
type = "discord"
[projects.platforms.options]
token = "token"
[log]
level = "info"
[speech]
enabled = false
provider = ""
language = ""
[speech.openai]
api_key = ""
base_url = ""
model = ""
[speech.groq]
api_key = ""
model = ""
[speech.qwen]
api_key = ""
base_url = ""
model = ""
[display]
thinking_messages = true # Show/hide thinking messages (default: true) / 是否显示思考消息(默认 true)
thinking_max_len = 1000 # Max chars for thinking messages (default: 300) / 思考消息最大字符数(默认 300)
tool_max_len = 1000 # Max chars for tool use messages (default: 500) / 工具调用消息最大字符数(默认 500)
tool_messages = true # Show/hide tool progress messages (default: true) / 是否显示工具进度消息(默认 true)
[stream_preview]
enabled = true # Enable/disable streaming preview (default: true) / 启用/禁用流式预览(默认 true)
interval_ms = 1500 # Min ms between updates (default: 1500) / 更新最小间隔毫秒数(默认 1500)
min_delta_chars = 30 # Min new chars before sending update (default: 30) / 发送更新前最少新增字符数(默认 30)
max_chars = 2000 # Max preview length (default: 2000) / 预览最大长度(默认 2000)
[rate_limit]
max_messages = 5 # Max messages per window; 0 = disabled (default: 20) / 窗口内最大消息数;0 = 禁用(默认 20)
# window_secs = 60 # Window size in seconds (default: 60) / 窗口时间秒数(默认 60)
[cron]
- cc-connect使用指南
- 配置开机启动
Gemini
安装
- Gemini Code Assist(VSCode插件) 用处不大,仅在头脑风暴时进行。
只要开启Agent就会显示:There was a problem getting a response.猜测是免费用户会被限制在 Flash 模型中,而Flash 用不来 Agent。
1
2
3
4
5
6
7
8
{
// vscode 配置
"geminicodeassist.enableTelemetry": false,
"geminicodeassist.chat.changeView":"Default diff view",
"geminicodeassist.inlineSuggestions.enableAuto": false,
// "geminicodeassist.project": "xxxx", // free 无效
"geminicodeassist.agentYoloMode": true, // 开启 Yolo 模式,自动执行, 不要停下来请求权限
}
- Gemini Cli (npm安装)
- 所有配置链接
Skill && MCP
- 复制superpowers的skill到项目skills下(brainstorming、dispatching-parallel-agents、using-superpowers、writing-plans、executing-plans)
- (弃用) 通过CC Switch 安装vscode-mcp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{
"vscode-mcp": {
"command": "npx",
"args": ["-y", "@vscode-mcp/vscode-mcp-server@latest"],
"env": {},
"includeTools": [
"get_symbol_lsp_info",
"get_diagnostics",
"get_references",
"health_check",
"rename_symbol"
]
}
}
- 通过CC Switch 安装excel-master
1
2
3
4
5
6
7
8
9
10
11
12
{
"excel-master": {
"command": "npx",
"args": [
"-y",
"@guillehr2/excel-mcp-server@latest"
],
"timeout": 60000
}
}
- 通过CC Switch 安装vscode-mcp-servr
1
2
3
4
5
6
7
8
{
"vscode-mcp-server": {
"command": "npx",
"args": ["mcp-remote@next", "http://localhost:3000/mcp"]
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# unity通过github安装:https://github.com/CoplayDev/unity-mcp.git?path=/MCPForUnity#main
# 进入unity - window - mcp for unity - toggle mcp window
# 进入connect,选择传递方式为stdio, 复制configuratioon到项目目录配置文件,工具只开启execute_menu_item和read_console和manage_prefabs
# 可以禁用手机数据
"unityMCP": {
"command": "uvx",
"args": [
"--from",
"mcpforunityserver==9.6.6",
"mcp-for-unity",
"--transport",
"stdio"
],
"type": "stdio",
"env": {
"DISABLE_TELEMETRY": "true"
}
}
# 让AI自己写markdown,工具的参数见源码:https://github.com/CoplayDev/unity-mcp/tree/beta/Server/src/services/tools
Codex
安装
- Codex桌面版
- VSCode Codex插件
vscode codex插件如果开启WSL就会使用WSL的配置,需要进入/home/xx/.condex中修改配置,所以不开启WSL
Agents
MCP
不支持partial class,但能获取诊断信息,用于获取诊断信息并修复。
MCP(模型上下文协议)客户端能够实时访问丰富的 VSCode 上下文信息
1
2
3
4
5
6
7
# vscode安装vsc-lsp-mcp插件
# .condex/config.toml添加配置:
[mcp_servers.vscode-mcp]
command = "bunx"
args = ["-y", "@vscode-mcp/vscode-mcp-server@latest"]
env = { "VSCODE_MCP_DISABLED_TOOLS" = "health_check,list_workspaces,open_files" }
startup_timeout_ms = 16_000
Claude Code
备注:为什么弃用,因为对其他AI的支持很弱,anthropic的AI像Claude Sonne才能用起来顺畅。
安装
-
备注:npm安装方式已弃用
1
2
3
4
5
6
7
8
9
# 管理员权限运行powershell
irm https://claude.ai/install.ps1 | iex
# 配置关闭claude code遥感
# 永久生效:以下似乎无效,下方vscode settings.json的配置才有效
# [Environment]::SetEnvironmentVariable("CLAUDE_TELEMETRY", "off", "User")
# [Environment]::SetEnvironmentVariable("CLAUDE_NO_TELEMETRY", "1", "User")
# [Environment]::SetEnvironmentVariable("ANTHROPIC_NO_TELEMETRY", "1", "User")
# [System.Environment]::SetEnvironmentVariable('DISABLE_TELEMETRY', '1', 'User')
-
VS Code插件
1
2
3
4
5
6
7
8
9
10
11
# VSCode的Setting.json必须显性禁用所有非核心功能的网络请求,包括遥测上报和自动更新检查。不然会一直等待遥感失败,导致等到几分钟才能进入AI的请求。
"claudeCode.environmentVariables": [
{
"name": "CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC",
"value": "1"
},
{
"name": "DISABLE_TELEMETRY",
"value": "1"
},
],
CALUDE.md
MCP
据说claude code底层使用的是ripgrep。不确定claude code内部是否包含了ripgrep,直接安装ripgrep方便使用
1
2
# 安装
winget install BurntSushi.ripgrep.MSVC
1
2
3
4
5
6
7
# 安装
irm https://raw.githubusercontent.com/DeusData/codebase-memory-mcp/main/scripts/setup-windows.ps1 | iex
# 启用 MCP 会话启动时的自动索引
codebase-memory-mcp config set auto_index true
# 保持最新状态
codebase-memory-mcp update
# 告诉claude测试codebase-memory-mcp的使用会进行项目索引
- (弃用)
Superpowers - (弃用)
claude-md-management - (弃用)
planning-with-files - (弃用)
Remember -
(弃用)LSP
放弃LSP方案,因为C# LSP无法正确处理partial。
- (弃用) LSP- VSC-LSP-MCP
使用VSCode LSP的MCP,MCP(模型上下文协议)客户端能够实时访问丰富的 VSCode 上下文信息
1
2
3
4
5
6
7
1. vscode安装vsc-lsp-mcp插件
2. 通过CC Switch给Claude添加MCP:
"lsp-mcp": {
"type": "http",
"url": "http://127.0.0.1:9527/mcp"
},
3. .claude/rules/TOOLS.LSP.md要求Claude Code生成对VSCode-MCP的使用。
不支持partial class,但能获取诊断信息,用于获取诊断信息并修复。
MCP(模型上下文协议)客户端能够实时访问丰富的 VSCode 上下文信息
1
2
3
4
5
6
7
8
9
10
11
12
13
1. vscode安装vsc-lsp-mcp插件
2. 通过CC Switch给Claude添加MCP:
"vscode-mcp": {
"args": [
"/c",
"npx",
"-y",
"@vscode-mcp/vscode-mcp-server@latest"
],
"command": "cmd",
"type": "stdio"
}
3. .claude/rules/TOOLS.md要求Claude Code生成对VSCode-MCP的使用。
- [弃用]LSP-Claude Code官方CSharp-lsp
dotnet安装csharp-ls Claude Code VS Code插件市场安装csharp-ls Plugin
- (弃用)LSP-VSCode LSP MCP Server(作者:Trad Me)
这个最简单,安装vscode插件。 运行VSCode命令: “LSP MCP: Install for Claude Code” 需要运行
1
2
3
4
# 确保mcp-proxy安装
uv tool install mcp-proxy
# 确保加入PATH,可能会输出Executable directory C:\Users\Gumc\.local\bin is already in PATH
uv tool update-shell
1
2
3
4
5
6
7
8
{
"mcpServers": {
"vscode-lsp": {
"type": "http",
"url": "http://localhost:37140/mcp"
}
}
}
- (弃用)LSP-roslyn-refactor
感觉很慢
Hook
Antigravity
复杂功能特别是需要分析现有的代码进行实现,则使用Antigravity。
VSCode插件
- Copilot
Copilot Pro无限使用GPT-5 Mini是不错的,可惜只有首月免费。
- Codex插件
某鱼某淘可购买business或Plus也有25元,可能有风险。 免费额度也很慷慨。
- Gemini Code Assist
复杂问题使用,Gemini 3的思考和代码能力最强。当然Geimin Code Assist经常会自动切换到Gemini Pro 2.5会降智的。 一般遇到复杂功能、不确定如何实现的需求或找Bug,则在aistudio使用Gemini 3讨论。如需要与代码交互(如找Bug)则使用Gemini Code Assist或Antigravity。
- Trae
基本废了,基本作为补全使用,不会用来写代码。 trae使用梯子通过trae.ai登录海外账号,似乎可以无限使用Gemini 2.5,不过现在经常出错,似乎海外账号不支持vscode插件了。 目前使用起来很慢,估计很快就可以弃用了。
- Code Web Chat
相当于合法通过vscode将上下文发送到web页面,然后获取web页面结果返回到vscode,自动进行editor等操作。 相比于很多逆向API(违规),这个合规的,自动帮忙提交上下文到网页版后并自动获取结果来对比。 但是,”codeWebChat.reuseLastTab”: true,这个配置似乎不生效,每次都重开一个标签,有毛病。
备注:与Code Web Chat类似的有个:openlink(视频),但还需要自己解决gemini外的前端适配和skill。
- Claude Code
除非用Claude官方模型,不然第三方其他AI支持很差。