36 lines
1.3 KiB
Markdown
36 lines
1.3 KiB
Markdown
---
|
||
title: "MCP在Cursor中的集成与应用详解"
|
||
type: source
|
||
tags: [AI, Cursor, MCP, AI-Agent]
|
||
date: 2026-04-14
|
||
source_file: raw/Technical/MCP在Cursor中的集成与应用详解.md
|
||
---
|
||
|
||
## Summary
|
||
- 核心主题:MCP协议在Cursor中的集成和使用方法
|
||
- 问题域:大模型与外围服务的高效集成
|
||
- 方法/机制:MCP Server提供三种接口 → Cursor接入 → Composer Agent模式调用
|
||
- 结论/价值:MCP实现大模型与多样外部工具的无缝链接
|
||
|
||
## Key Claims
|
||
- MCP (Modal Context Protocol)是基于Client-Server架构的协议
|
||
- MCP Server提供三种功能接口:资源获取(GET)、工具调用(POST)、Promise提示词
|
||
- Cursor接入MCP方式:SSE服务方式和本地执行命令方式
|
||
- Agent模式自动执行内嵌命令,Normal模式需手动复制执行
|
||
|
||
## Key Concepts
|
||
- [[MCP]]:Modal Context Protocol,AI大模型与外围服务集成的协议
|
||
- [[MCP-Server]]:MCP协议体系中的服务提供方
|
||
- [[MCP-Client]]:MCP协议体系中的服务调用方
|
||
- [[SSE]]:Server-Sent Events,一种MCP接入方式
|
||
- [[Sequential-Thinking]]:MCP工具,支持逻辑推理与分步执行任务
|
||
|
||
## Key Entities
|
||
- [[Cursor]]:集成了MCP的AI代码编辑器
|
||
|
||
## Connections
|
||
- [[Cursor-2-0-指南]] ← MCP支持 ← [[MCP在Cursor中的集成]]
|
||
|
||
## Contradictions
|
||
- 尚未发现
|