<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>AI 编码 &#8211; mylogs.cn</title>
	<atom:link href="https://mylogs.cn/tag/ai-%e7%bc%96%e7%a0%81/feed/" rel="self" type="application/rss+xml" />
	<link>https://mylogs.cn</link>
	<description>发现、记录、分享</description>
	<lastBuildDate>Mon, 10 Aug 2026 10:59:58 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>这款 VS Code 插件让 AI 编码智能体真正读懂你的工程</title>
		<link>https://mylogs.cn/implant-vscode-ai-coding-agent-mcp/</link>
		
		<dc:creator><![CDATA[steve, zhang]]></dc:creator>
		<pubDate>Mon, 10 Aug 2026 10:59:44 +0000</pubDate>
				<category><![CDATA[科技]]></category>
		<category><![CDATA[AI 编码]]></category>
		<category><![CDATA[Implant]]></category>
		<category><![CDATA[MCP]]></category>
		<category><![CDATA[VS Code]]></category>
		<category><![CDATA[代码助手]]></category>
		<category><![CDATA[开发工具]]></category>
		<category><![CDATA[智能体]]></category>
		<guid isPermaLink="false">https://mylogs.cn/implant-vscode-ai-coding-agent-mcp/</guid>

					<description><![CDATA[AI 编码助手越来越聪明，但它们和开发环境之间始终隔着一层玻璃：能看到代码，却很难调用编辑器本身的“内功”。一 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">AI 编码助手越来越聪明，但它们和开发环境之间始终隔着一层玻璃：能看到代码，却很难调用编辑器本身的“内功”。一款名为 <strong>Implant</strong> 的 VS Code 插件试图拆掉这面墙——它把 VS Code 的完整 API 暴露给 Copilot Chat、Claude Code、Cursor 等支持 MCP 协议的 AI 智能体。</p>



<figure data-wp-context="{&quot;imageId&quot;:&quot;6a79c394a3c3c&quot;}" data-wp-interactive="core/image" data-wp-key="6a79c394a3c3c" class="wp-block-image size-large aligncenter wp-lightbox-container"><img fetchpriority="high" decoding="async" width="1200" height="821" data-wp-class--hide="state.isContentHidden" data-wp-class--show="state.isContentVisible" data-wp-init="callbacks.setButtonStyles" data-wp-on--click="actions.showLightbox" data-wp-on--load="callbacks.setButtonStyles" data-wp-on--pointerdown="actions.preloadImage" data-wp-on--pointerenter="actions.preloadImageWithDelay" data-wp-on--pointerleave="actions.cancelPreload" data-wp-on-window--resize="callbacks.setButtonStyles" src="https://mylogs.cn/wp-content/uploads/2026/08/839f0fc8029b151d9edf0a0bf399065a_header.webp" alt="这款 VS Code 插件让 AI 编码智能体真正读懂你的工程" class="wp-image-4313" style="max-width:100%;height:auto;" srcset="https://mylogs.cn/wp-content/uploads/2026/08/839f0fc8029b151d9edf0a0bf399065a_header.webp 1200w, https://mylogs.cn/wp-content/uploads/2026/08/839f0fc8029b151d9edf0a0bf399065a_header-300x205.webp 300w, https://mylogs.cn/wp-content/uploads/2026/08/839f0fc8029b151d9edf0a0bf399065a_header-1024x701.webp 1024w, https://mylogs.cn/wp-content/uploads/2026/08/839f0fc8029b151d9edf0a0bf399065a_header-768x525.webp 768w" sizes="(max-width: 1200px) 100vw, 1200px" /><button
			class="lightbox-trigger"
			type="button"
			aria-haspopup="dialog"
			data-wp-bind--aria-label="state.thisImage.triggerButtonAriaLabel"
			data-wp-init="callbacks.initTriggerButton"
			data-wp-on--click="actions.showLightbox"
			data-wp-style--right="state.thisImage.buttonRight"
			data-wp-style--top="state.thisImage.buttonTop"
		>
			<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="none" viewBox="0 0 12 12">
				<path fill="#fff" d="M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z" />
			</svg>
		</button><figcaption class="wp-element-caption">AI生成配图</figcaption></figure>





<h2 class="wp-block-heading">它能做什么</h2>



<p class="wp-block-paragraph">Implant 的核心是提供一个 MCP 工具 <code>run_vscode_script</code>。通过它，AI 智能体可以实时调用 VS Code 及其第三方扩展的能力：查找引用、跳转到定义、悬浮提示类型、查看工作区诊断、读取 git blame、浏览符号大纲，以及运行任何扩展注册的命令。</p>



<p class="wp-block-paragraph">更实用的是修改代码的能力：结构化重命名、快速修复、重构、整理导入、通过 WorkspaceEdit 安全地创建/重命名/删除文件、使用格式化程序、执行源码操作。这些编辑都走语言服务器，而不是粗暴的文本替换，因此更能尊重作用域、导入和语义。</p>



<h2 class="wp-block-heading">为什么比纯文本对话更安全</h2>



<p class="wp-block-paragraph">插件作者 Pavel Mikhailovskii 强调，Implant 默认不会自动执行任何脚本。每次调用都会弹出一个带有语法高亮的 webview，让用户选择“运行”、“运行并信任本次会话”或“拒绝”。只有用户明确批准后，脚本才会在 VS Code 扩展宿主中执行。</p>



<p class="wp-block-paragraph">插件本地 HTTP 服务器只绑定 127.0.0.1，并依赖每次启动都会重新生成的会话令牌，未授权请求会返回 401 并弹出警告。不过作者也提醒：不要在共享机器上使用，因为任何以同一用户身份运行的进程都能读取会话文件。</p>



<h2 class="wp-block-heading">安装与配置</h2>



<p class="wp-block-paragraph">安装 Implant 后，它会询问是否将其安装到当前工作区。这一步会在项目里生成五份可提交到版本控制的文件：</p>



<ul class="wp-block-list"><li><code>.vscode/implant/call.js</code>：stdio 与 HTTP MCP 代理</li></ul>



<ul class="wp-block-list"><li><code>.mcp.json</code>：Claude Code / 通用 MCP 配置</li></ul>



<ul class="wp-block-list"><li><code>.cursor/mcp.json</code>：Cursor MCP 配置</li></ul>



<ul class="wp-block-list"><li><code>.claude/skills/implant/SKILL.md</code>：Claude Code 技能说明</li></ul>



<ul class="wp-block-list"><li><code>.cursor/rules/implant.mdc</code>：Cursor 规则文件</li></ul>



<p class="wp-block-paragraph">同时，它会在 <code>.github/copilot-instructions.md</code> 中插入一段 <code>&lt;!-- BEGIN Implant --&gt;</code> 标记的指导语。VS Code 1.101 及以上版本的 MCP 原生客户端会自动发现该工具；命令行智能体则通过工作区配置文件读取。</p>



<h2 class="wp-block-heading">适合谁用</h2>



<p class="wp-block-paragraph">如果你经常让 AI 处理中大型代码库，却总被“找不到定义”“改错了导入”“重命名漏了引用”困扰，Implant 相当于给智能体配了一副眼镜和一套手术刀。它不会替你思考，但能让智能体真正看懂并操作工程。</p>



<h2 class="wp-block-heading">局限</h2>



<p class="wp-block-paragraph">目前 Implant 仍依赖每次调用的手动确认，不适合完全无人值守的自动化流水线。另外，由于脚本在扩展宿主内以扩展同等权限运行，任何安全沙箱的缺失都是其设计本身带来的取舍。</p>



<p class="has-small-font-size wp-block-paragraph">来源：Visual Studio Marketplace / Implant</p>

]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
