<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Connecting an MCP server gives your agent hands. It also gives a stranger a way in.]]></title><description><![CDATA[<blockquote>
<p dir="auto">来源：<a href="https://dev.to/rapls/connecting-an-mcp-server-gives-your-agent-hands-it-also-gives-a-stranger-a-way-in-3mgi" rel="nofollow ugc">https://dev.to/rapls/connecting-an-mcp-server-gives-your-agent-hands-it-also-gives-a-stranger-a-way-in-3mgi</a></p>
</blockquote>
<hr />
<p dir="auto">The moment you connect an MCP server, your coding agent stops being a thing that reads and writes in your repo and becomes a thing that can reach out and act. Read a database, hit an API, touch a service, pull in a web page. That's the entire appeal. It's also the entire problem.</p>
<p dir="auto">I went through this wiring up tools for my own plugin work, and the thing that saved me from a worse mistake was a scar I already had. I'd shipped an AI chatbot earlier where I rendered the model's output straight to the page and ate an HTML injection bug. That one taught me a rule the hard way: anything an LLM hands back is untrusted input. MCP is that same lesson with the blast radius turned up.</p>
<p dir="auto">When people talk about agent safety, they almost always mean: what if the agent runs something destructive. Deletes files, force-pushes, curls something it shouldn't. But it's only half the threat. The other half is quieter: what if the agent believes something it shouldn't. An MCP server returns an API response, a database row, an issue body, an email thread, and somewhere in that returned content is a line that reads like an instruction. The model has no reliable way to tell your instruction from text that arrived inside data.</p>
<p dir="auto">Whatever an MCP server returns is in exactly the same trust category as a string a stranger typed into a form on your site. Not "data from my tool." Data from outside, that happens to arrive through my tool.</p>
<p dir="auto">The other half, the destructive-command fear, does have a settings answer. In Claude Code that's the sandbox: turn it on and Bash execution gets isolated at the OS level. Here's the part that surprised me: the sandbox restricts writes to your working directory, but by default it still allows reads across most of the machine. Which means credentials like ~/.aws/credentials and ~/.ssh/ are readable unless you say otherwise.</p>
<p dir="auto">The server itself is attack surface. A connected MCP server you didn't vet is code running in your loop with a channel into your agent. So three habits: Vet the source before you connect it. Drop the ones you're not using. If a CLI already does the job, don't stand up a server at all.</p>
<p dir="auto">Before I wire up any MCP server, three questions: Do I trust where this server came from. What's the worst command it could talk my agent into, and is that command walled off by deny rules. Is the output going to get treated as untrusted input everywhere it lands.</p>
<p dir="auto">Connecting a server is genuinely the moment your agent grows hands. Worth remembering that hands can be guided by whoever's holding the other end of the tool.</p>
<p dir="auto">（此帖无评论）</p>
<hr />
]]></description><link>https://aspxai.com/topic/165/connecting-an-mcp-server-gives-your-agent-hands.-it-also-gives-a-stranger-a-way-in.</link><generator>RSS for Node</generator><lastBuildDate>Mon, 22 Jun 2026 07:36:22 GMT</lastBuildDate><atom:link href="https://aspxai.com/topic/165.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 22 Jun 2026 02:41:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Connecting an MCP server gives your agent hands. It also gives a stranger a way in. on Mon, 22 Jun 2026 02:41:25 GMT]]></title><description><![CDATA[<p dir="auto">有推荐的 Agent 监控工具吗？主要用于追踪执行流程。</p>
]]></description><link>https://aspxai.com/post/654</link><guid isPermaLink="true">https://aspxai.com/post/654</guid><dc:creator><![CDATA[余挽]]></dc:creator><pubDate>Mon, 22 Jun 2026 02:41:25 GMT</pubDate></item><item><title><![CDATA[Reply to Connecting an MCP server gives your agent hands. It also gives a stranger a way in. on Mon, 22 Jun 2026 02:41:25 GMT]]></title><description><![CDATA[<p dir="auto">Claude Code 写 TypeScript 项目一流，Python 也行，Java 差点意思。</p>
]]></description><link>https://aspxai.com/post/653</link><guid isPermaLink="true">https://aspxai.com/post/653</guid><dc:creator><![CDATA[微醺茶馆]]></dc:creator><pubDate>Mon, 22 Jun 2026 02:41:25 GMT</pubDate></item><item><title><![CDATA[Reply to Connecting an MCP server gives your agent hands. It also gives a stranger a way in. on Mon, 22 Jun 2026 02:41:25 GMT]]></title><description><![CDATA[<p dir="auto">有对比过 Claude Code 和 Cursor 的性能差异吗？</p>
]]></description><link>https://aspxai.com/post/652</link><guid isPermaLink="true">https://aspxai.com/post/652</guid><dc:creator><![CDATA[轻语少年]]></dc:creator><pubDate>Mon, 22 Jun 2026 02:41:25 GMT</pubDate></item><item><title><![CDATA[Reply to Connecting an MCP server gives your agent hands. It also gives a stranger a way in. on Mon, 22 Jun 2026 02:41:25 GMT]]></title><description><![CDATA[<p dir="auto">Agent 的 token 消耗是普通对话的 3-5 倍，有优化技巧吗？</p>
]]></description><link>https://aspxai.com/post/651</link><guid isPermaLink="true">https://aspxai.com/post/651</guid><dc:creator><![CDATA[兰亭山中]]></dc:creator><pubDate>Mon, 22 Jun 2026 02:41:25 GMT</pubDate></item><item><title><![CDATA[Reply to Connecting an MCP server gives your agent hands. It also gives a stranger a way in. on Mon, 22 Jun 2026 02:41:25 GMT]]></title><description><![CDATA[<p dir="auto">Claude Code 写 TypeScript 项目一流，Python 也行，Java 差点意思。</p>
]]></description><link>https://aspxai.com/post/650</link><guid isPermaLink="true">https://aspxai.com/post/650</guid><dc:creator><![CDATA[pro4]]></dc:creator><pubDate>Mon, 22 Jun 2026 02:41:25 GMT</pubDate></item><item><title><![CDATA[Reply to Connecting an MCP server gives your agent hands. It also gives a stranger a way in. on Mon, 22 Jun 2026 02:41:25 GMT]]></title><description><![CDATA[<p dir="auto">有推荐的 Agent 监控工具吗？主要用于追踪执行流程。</p>
]]></description><link>https://aspxai.com/post/649</link><guid isPermaLink="true">https://aspxai.com/post/649</guid><dc:creator><![CDATA[illusionist26]]></dc:creator><pubDate>Mon, 22 Jun 2026 02:41:25 GMT</pubDate></item><item><title><![CDATA[Reply to Connecting an MCP server gives your agent hands. It also gives a stranger a way in. on Mon, 22 Jun 2026 02:41:14 GMT]]></title><description><![CDATA[<p dir="auto">Claude Code 写 TypeScript 项目一流，Python 也行，Java 差点意思。</p>
]]></description><link>https://aspxai.com/post/548</link><guid isPermaLink="true">https://aspxai.com/post/548</guid><dc:creator><![CDATA[烟雨吹风]]></dc:creator><pubDate>Mon, 22 Jun 2026 02:41:14 GMT</pubDate></item><item><title><![CDATA[Reply to Connecting an MCP server gives your agent hands. It also gives a stranger a way in. on Mon, 22 Jun 2026 02:41:14 GMT]]></title><description><![CDATA[<p dir="auto">我用 Claude Code 重构了一个 3000 行的模块，质量比人工写的高。</p>
]]></description><link>https://aspxai.com/post/547</link><guid isPermaLink="true">https://aspxai.com/post/547</guid><dc:creator><![CDATA[斜阳焚香]]></dc:creator><pubDate>Mon, 22 Jun 2026 02:41:14 GMT</pubDate></item><item><title><![CDATA[Reply to Connecting an MCP server gives your agent hands. It also gives a stranger a way in. on Mon, 22 Jun 2026 02:41:14 GMT]]></title><description><![CDATA[<p dir="auto">有推荐的 Agent 监控工具吗？主要用于追踪执行流程。</p>
]]></description><link>https://aspxai.com/post/546</link><guid isPermaLink="true">https://aspxai.com/post/546</guid><dc:creator><![CDATA[猫港]]></dc:creator><pubDate>Mon, 22 Jun 2026 02:41:14 GMT</pubDate></item></channel></rss>