diff --git a/wiki/concepts/Agent模式.md b/wiki/concepts/Agent模式.md new file mode 100644 index 00000000..870c97c6 --- /dev/null +++ b/wiki/concepts/Agent模式.md @@ -0,0 +1,17 @@ +--- +title: "Agent模式" +type: concept +tags: [interaction-mode, ai-agent, cursor] +last_updated: 2026-04-14 +--- + +## Aliases +- Agent mode +- 代理模式 + +## Summary +Agent 模式是 [[Cursor]] 中 Composer 模块的一种交互状态。与需要用户手动复制执行命令的 Normal 模式不同,Agent 模式能够让 AI 模型自动运行内置的工具命令并处理返回结果,极大地提升了自动化任务的执行效率。配合 `enable yolo mode` 可以跳过二次确认(但具有一定风险)。 + +## Key Connections +- [[Agent模式]] → enables → [[SequentialThinking]] +- [[Agent模式]] 存在于 [[Cursor]] 的 Composer 中 diff --git a/wiki/concepts/SSE.md b/wiki/concepts/SSE.md new file mode 100644 index 00000000..b372fcd7 --- /dev/null +++ b/wiki/concepts/SSE.md @@ -0,0 +1,16 @@ +--- +title: "SSE" +type: concept +tags: [protocol, integration] +last_updated: 2026-04-14 +--- + +## Aliases +- Server-Sent Events +- SSE连接 + +## Summary +SSE (Server-Sent Events) 是一种服务器向客户端单向推送实时事件的技术。在 [[MCP]] 的生态中,SSE 是除命令行 (Command) 之外的另一种服务端接入方式,允许客户端实时监听服务端发出的数据和状态更新。 + +## Key Connections +- [[SSE]] 是接入 [[MCP]] 的两种主要方式之一 diff --git a/wiki/concepts/SequentialThinking.md b/wiki/concepts/SequentialThinking.md new file mode 100644 index 00000000..cf185902 --- /dev/null +++ b/wiki/concepts/SequentialThinking.md @@ -0,0 +1,18 @@ +--- +title: "SequentialThinking" +type: concept +tags: [reasoning, ai-capability] +last_updated: 2026-04-14 +--- + +## Aliases +- 序列化思考 +- Sequential Thinking +- 步骤化推理 + +## Summary +Sequential Thinking 是一种优化大语言模型(LLM)逻辑推理过程的机制或工具。它通过将复杂的任务分步拆解,并允许与外部服务(例如通过 [[MCP]] 集成的新闻源)互相调用,从而显著提升 AI 在面对复杂环境时的思考深度和响应准确率。 + +## Key Connections +- [[SequentialThinking]] ← depends_on ← [[Agent模式]] +- [[SequentialThinking]] 配合 [[MCP]] 使用提升能力 diff --git a/wiki/entities/Cursor.md b/wiki/entities/Cursor.md new file mode 100644 index 00000000..16466740 --- /dev/null +++ b/wiki/entities/Cursor.md @@ -0,0 +1,17 @@ +--- +title: "Cursor" +type: entity +tags: [ide, ai-tool] +last_updated: 2026-04-14 +--- + +## Aliases +- Cursor AI +- Cursor IDE + +## Summary +Cursor 是一个集成了多种 AI 能力的代码编辑器,支持接入外部的大模型与服务。在较新的版本中,其 Composer 模块支持接入 [[MCP]](Modal Context Protocol),允许开发者通过大模型自动化地执行工具和命令行任务。 + +## Key Connections +- [[Cursor]] ← extends ← [[MCP]] +- [[Cursor]] 包含交互组件 [[Agent模式]] 和 Normal 模式 diff --git a/wiki/entities/Smisery.md b/wiki/entities/Smisery.md new file mode 100644 index 00000000..5ca744e2 --- /dev/null +++ b/wiki/entities/Smisery.md @@ -0,0 +1,17 @@ +--- +title: "Smisery" +type: entity +tags: [mcp-server, data-source] +last_updated: 2026-04-14 +--- + +## Aliases +- smisery +- smisery MCP +- 热点新闻 MCP Server + +## Summary +Smisery 是一个提供热点新闻聚合的 [[MCP]] Server 服务,它支持多达九个新闻来源,可以被大模型客户端(如 [[Cursor]])一次性接入,为大模型提供实时的数据查询与调用能力。 + +## Key Connections +- [[Cursor]] ← invokes ← [[Smisery]] diff --git a/wiki/index.md b/wiki/index.md index b4dadaa0..62d3f97a 100644 --- a/wiki/index.md +++ b/wiki/index.md @@ -79,6 +79,8 @@ - [如何写出完美的Prompt](sources/perfect-prompt-guide.md) ## Entities +- [Cursor](entities/Cursor.md) +- [Smisery](entities/Smisery.md) - [OpenClaw](entities/OpenClaw.md) - [N8N](entities/N8N.md) - [MCP](entities/MCP.md) @@ -92,6 +94,9 @@ - [LangChain](entities/LangChain.md) ## Concepts +- [Agent模式](concepts/Agent模式.md) +- [SequentialThinking](concepts/SequentialThinking.md) +- [SSE](concepts/SSE.md) - [Workspace](concepts/Workspace.md) - [多Agent系统](concepts/多Agent系统.md) - [工作流自动化](concepts/工作流自动化.md) diff --git a/wiki/log.md b/wiki/log.md index 070b2f03..e9bf61ba 100644 --- a/wiki/log.md +++ b/wiki/log.md @@ -19,6 +19,16 @@ ### 冲突检测 - 无重大冲突发现 +## [2026-04-14] ingest | MCP在Cursor中的集成与应用详解.md + +### 摄取统计 +- 重新解析 Source 页面:1个 +- 新增 Entity:2个(Cursor、Smisery) +- 新增 Concept:3个(Agent模式、SequentialThinking、SSE) + +### 冲突检测 +- 无冲突 + ## [2026-04-14] ingest | Agent目录批量摄取(45个文件) ### 摄取统计 diff --git a/wiki/overview.md b/wiki/overview.md index 0eadf7ed..e4dfc262 100644 --- a/wiki/overview.md +++ b/wiki/overview.md @@ -40,6 +40,7 @@ - **Sub-agent多Agent协作**:分散式协调通过共享状态文件 - **Cron定时任务与心跳机制**:自动化定期执行 - **MCP协议工具调用**:Client-Server架构的服务集成 +- **Cursor集成调用**:支持SSE与Command模式的代理调用与推理工具链 - **Webhook安全集成**:OpenClaw与N8N的安全集成模式 - **向量语义搜索**:memsearch实现记忆的语义检索 @@ -56,6 +57,8 @@ - [[OpenClaw]]:开源AI Agent框架 - [[N8N]]:工作流自动化平台 - [[MCP]]:模态上下文协议 +- [[Cursor]]:集成MCP的高级代码大模型编辑器 +- [[Smisery]]:热点新闻MCP服务数据源 - [[DenchClaw]]:本地CRM框架 - [[AionUi]]:桌面Cowork应用 @@ -76,6 +79,8 @@ - [[工作流自动化]]:使用工具自动执行重复性任务 - [[记忆系统]]:Agent跨会话保留上下文的能力 - [[技能系统]]:OpenClaw的扩展机制 +- [[Agent模式]]:模型自动执行工具命令的交互模式 +- [[SequentialThinking]]:大模型的逻辑推理任务分步拆解机制 - [[n8n-mcp]]:N8N的MCP服务器实现 - [[idea-reality-mcp]]:预构建创意验证MCP diff --git a/wiki/sources/mcp-zai-cursor-zhong-de-ji-cheng-yu-ying-yong.md b/wiki/sources/mcp-zai-cursor-zhong-de-ji-cheng-yu-ying-yong.md index 0aa15328..220537bc 100644 --- a/wiki/sources/mcp-zai-cursor-zhong-de-ji-cheng-yu-ying-yong.md +++ b/wiki/sources/mcp-zai-cursor-zhong-de-ji-cheng-yu-ying-yong.md @@ -1,40 +1,43 @@ --- title: "MCP在Cursor中的集成与应用详解" type: source -tags: [mcp, cursor, ai-agent] -date: 2026-03-06 +tags: [ai, ai-agent, cursor, mcp] +date: 2026-04-14 --- ## Source File - [[raw/Agent/MCP在Cursor中的集成与应用详解.md]] ## Summary -- 核心主题:在Cursor中集成和使用MCP协议 -- 问题域:实现大模型与外围工具服务无缝集成 -- 方法/机制:MCP Server提供三种接口(资源获取、工具调用、Promise提示词),通过SSE或Command方式接入 -- 结论/价值:掌握MCP可大幅提升AI应用的扩展能力和交互效率 +- 核心主题:在 Cursor 中集成与使用 Modal Context Protocol (MCP) 服务。 +- 问题域:实现 AI 大模型与外部工具/数据源(如新闻服务)的高效、无缝连接与调用。 +- 方法/机制:基于 Client-Server 架构,在 Cursor 中配置 MCP Server(支持 SSE 和 Command 两种模式),并在 Agent 模式下通过大模型自动调用 MCP 暴露的资源(GET)、工具(POST)和提示词接口。 +- 结论/价值:打通了 AI 与本地/远程工具链的通路,尤其是配合 Sequential Thinking 工具,显著提升了复杂任务的逻辑拆解能力与执行效率。 ## Key Claims -- MCP是Modal Context Protocol,基于Client-Server架构的协议 -- MCP Server提供三种功能接口:资源获取(GET)、工具调用(POST)、Promise提示词 -- Cursor中MCP接入方式:SSE服务和本地Command两种 -- Agent模式可自动执行内嵌命令并处理工具调用 -- Sequential Thinking工具支持逻辑推理与分步执行任务 +- MCP 协议通过标准化接口(资源获取、工具调用、提示词)实现了大模型与外围服务的高效集成。 +- Agent 模式相比 Normal 模式,能让大模型自动处理工具链的调用并执行命令,大幅减少手动操作。 +- 开启 enable yolo mode 存在较高的误操作风险,默认应保持关闭。 +- Sequential Thinking 工具通过逻辑推理分步拆解任务,能够与外部服务相互调用,提升系统思考的深度与准确性。 ## Key Quotes -> "MCP是Modal Context Protocol的缩写,是一种基于Client-Server架构的协议,旨在实现大模型与外围服务的高效集成。" — 视频教程 +> "MCP是Modal Context Protocol的缩写,是一种基于Client-Server架构的协议,旨在实现大模型与外围服务的高效集成。" — 定义了 MCP 的核心机制。 +> "Agent模式能实现自动运行工具命令,Normal模式需要用户手动复制命令执行,理解区别尤为关键。" — 强调了 Cursor 中两种交互模式的体验差异。 ## Key Concepts -- [[MCP]]:Modal Context Protocol,AI大模型与外围服务集成的协议 -- [[MCP Server]]:MCP协议中的服务提供方 -- [[MCP Client]]:MCP协议中的服务调用方 -- [[Sequential Thinking]]:MCP工具之一,支持逻辑推理与分步执行 -- [[Agent模式]]:自动执行内嵌命令并处理工具调用的模式 +- [[MCP]]:一种支持 AI 大模型与外围服务基于 Client-Server 架构进行高效交互的协议。 +- [[Agent模式]]:Cursor 中的一种交互状态,允许 AI 自动执行工具命令并处理返回结果。 +- [[SequentialThinking]]:一种支持逻辑推理与分步执行复杂任务的 AI 思考模式与工具。 +- [[SSE]]:Server-Sent Events,一种服务器向客户端推送实时事件的技术,用于 MCP 服务接入。 ## Key Entities -- [[Cursor]]:AI代码编辑器 -- [[鱼凤老师]]:视频教程作者 +- [[Cursor]]:集成了 MCP 协议的智能代码编辑器与大模型客户端。 +- [[Smisery]]:提供热点新闻 MCP Server 的数据源平台。 +- [[鱼凤]]:本教程视频的讲解者。 ## Connections -- [[MCP]] ← used_by ← [[Cursor]] -- [[Cursor]] ← supports ← [[Agent模式]] +- [[Cursor]] ← extends ← [[MCP]] +- [[SequentialThinking]] ← depends_on ← [[Agent模式]] + +## Contradictions +- 无明显冲突。