Auto-sync: 2026-04-27 08:02
This commit is contained in:
@@ -1,43 +1,43 @@
|
||||
---
|
||||
title: "Cursor"
|
||||
type: entity
|
||||
tags: [ai, ide, code-editor]
|
||||
last_updated: 2026-04-22
|
||||
---
|
||||
|
||||
## Overview
|
||||
Cursor是基于VS Code的AI增强代码编辑器,集成了AI模型辅助代码生成及多任务代理操作。可免费使用,支持付费升级获取更多生成额度。
|
||||
|
||||
## Aliases
|
||||
- Cursor 2.0
|
||||
- Cursor IDE
|
||||
|
||||
## Key Features
|
||||
- 基于VS Code构建,继承VS Code的完整功能
|
||||
- 集成AI模型辅助代码生成(Composer模型,比同类快4倍)
|
||||
- 支持多AI代理并行操作
|
||||
- 支持MCP(Model Context Protocol)扩展
|
||||
- 提供Diff功能审查AI生成的代码改动
|
||||
- 支持项目规则自定义(如强制生成文档注释)
|
||||
|
||||
## Agent Modes
|
||||
- **Plan(规划模式)**:让AI拆解步骤,形成清晰的开发路线图
|
||||
- **Agent(执行模式)**:AI代理执行计划任务,逐步生成代码,会修改文件
|
||||
- **Ask(咨询模式)**:仅返回文本答案,不改动代码,安全性最高
|
||||
|
||||
## Connections
|
||||
- [[VS Code]] — Cursor基于VS Code构建
|
||||
- [[Composer]] — Cursor自研AI模型
|
||||
- [[MCP(Model Context Protocol)]] — Cursor支持的扩展协议
|
||||
- [[Vibe Coding]] — Cursor是Vibe Coding的典型工具
|
||||
- [[Claude Code]] — 类似产品,AI代码编辑工具
|
||||
|
||||
## Sources
|
||||
- [[cursor-2-0初学者使用指南]]
|
||||
- [[mcp在cursor中的集成与应用详解]]
|
||||
|
||||
## New Insights (from MCP in Cursor Integration)
|
||||
- Composer 支持 Agent 模式和 Normal 模式两种交互方式,Agent 模式可自动执行 MCP 工具链
|
||||
- MCP Server 在 Cursor 中有两种接入方式:SSE 服务端模式和本地 Command 命令行方式
|
||||
- Agent 模式下的 Yolo Mode 会无确认执行所有命令,存在误操作风险(默认关闭)
|
||||
- 典型 MCP 工具:热点新闻服务(smisery 提供九个新闻来源)、Sequential Thinking 逻辑推理工具
|
||||
---
|
||||
title: "Cursor"
|
||||
type: entity
|
||||
tags: [ai, ai-agent, ide, mcp]
|
||||
sources: [mcp在cursor中的集成与应用详解, cursor-2-0初学者使用指南]
|
||||
last_updated: 2026-04-26
|
||||
---
|
||||
|
||||
## Overview
|
||||
Cursor 是一款支持 MCP(Modal Context Protocol)集成的 **AI 编程 IDE**,基于 VS Code 定制,集成了多种大模型用于代码补全、对话和自动化任务执行。
|
||||
|
||||
## MCP Integration
|
||||
Cursor 是 MCP 协议的重要客户端实现,支持在 IDE 中直接接入 MCP Server:
|
||||
|
||||
**接入方式:**
|
||||
1. 下载支持 MCP 功能的 Cursor 最新版
|
||||
2. 在 Cursor 设置中新增 MCP Server
|
||||
3. 选择接入类型:
|
||||
- **SSE 服务方式**:通过 HTTP SSE 连接远程 MCP Server
|
||||
- **Command 方式**:通过本地执行命令连接本地 MCP Server
|
||||
|
||||
**常见问题:**
|
||||
- 配置后出现 "no tools found" 错误 → 检查 MCP 服务路径或网络代理设置
|
||||
- 建议直接填写 MCP 原始地址,绕过代理层
|
||||
|
||||
## Composer Module
|
||||
Cursor 的 Composer 模块支持两种交互模式:
|
||||
- **Normal 模式**:需要用户手动复制 AI 给出的命令并执行
|
||||
- **Agent 模式**:自动执行 AI 发出的命令,处理工具调用(需开启)
|
||||
|
||||
## Version
|
||||
- Cursor 2.0 及以上版本支持 MCP 集成
|
||||
|
||||
## Connections
|
||||
- [[Mcp在Cursor中的集成与应用详解]] ← MCP 集成核心教程
|
||||
- [[Cursor2.0初学者使用指南]] ← 入门指南
|
||||
- [[ModalContextProtocol]] ← 集成协议
|
||||
- [[Composer]] ← 功能模块
|
||||
- [[AgentMode]] ← 交互模式
|
||||
|
||||
## See Also
|
||||
- [[OpenCode]]
|
||||
- [[Trae]]
|
||||
|
||||
Reference in New Issue
Block a user