Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions studio/MCP.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ execution warning and choose **Enable**. Each app runs its own MCP server, so Un
nothing: it connects to `http://127.0.0.1:<port>/mcp` on the backend machine, or for Roblox Studio
starts the launcher Studio ships.

Unity, Unreal Engine, Godot and Blender MCP run code outside Unsloth's sandbox, even with **Sandbox High**
on. That code can access any file the app can, including files outside your project. In **Run
automatically** mode, enabled MCP tools can run without asking.

| App | MCP server | Default | Notes |
|---|---|---|---|
| Unity | [MCP for Unity](https://github.com/CoplayDev/unity-mcp) | 8080 | Start the server in **Window → MCP for Unity** with the HTTP transport. **Test connection** turns green once an Editor has joined (`/api/instances`). |
Expand Down
5 changes: 5 additions & 0 deletions studio/frontend/src/features/chat/editor-mcp-catalog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ type EditorCopy = {
name: string;
duplicate: RegExp;
consent: string;
// Runs arbitrary code in the app, outside Unsloth's sandbox (Figma is read-only, Roblox Luau is Roblox-sandboxed).
sandboxWarning?: boolean;
link: { label: string; url: string };
// Section of the MCP engines docs page with the app's install steps.
guide: string;
Expand All @@ -35,6 +37,7 @@ export const EDITOR_MCP: Record<EditorMcpId, EditorCopy> = {
<>Open {strong("Window → MCP for Unity")}, keep the transport on {strong("HTTP")} and start the server.</>,
],
portHint: "Match the HTTP port in MCP for Unity.",
sandboxWarning: true,
},
unreal: {
name: "Unreal Engine",
Expand All @@ -47,13 +50,15 @@ export const EDITOR_MCP: Record<EditorMcpId, EditorCopy> = {
<>In {strong("Edit → Editor Preferences → General → Model Context Protocol")}, turn on {strong("Auto Start Server")} and restart. It listens on port 8000. Using the community {strong("EngineWire")} plugin instead? Set port 3000 and your project folder in Advanced settings.</>,
],
portHint: "Match the Server Port Number in Editor Preferences → Model Context Protocol.",
sandboxWarning: true,
projectField: true,
installTools: true,
},
godot: {
name: "Godot",
duplicate: /godot/i,
consent: "Allow editing scenes, scripts and project files and running your project in Godot. Results may be sent to your model provider. Cancelling may not undo changes.",
sandboxWarning: true,
link: { label: "Get Godot MCP Native", url: "https://github.com/yurineko73/Godot-MCP-Native" },
guide: "godot",
steps: [
Expand Down
19 changes: 18 additions & 1 deletion studio/frontend/src/features/chat/editor-mcp-setup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { openLink } from "@/lib/open-link";
import { Input } from "@/components/ui/input";
import { Label } from "@/components/ui/label";
import { Spinner } from "@/components/ui/spinner";
import { useT } from "@/i18n";
import { subscribeToMcpServerMutationSettlements } from "./api/mcp-server-mutation-tracker";
import {
type EditorMcpId,
Expand Down Expand Up @@ -64,6 +65,7 @@ export function EditorMcpSetup({ editorId, servers, onBusyChange, onClose }: {
onBusyChange: (busy: boolean) => void;
onClose?: () => void;
}) {
const t = useT();
const copy = EDITOR_MCP[editorId];
const [config, setConfig] = useState<McpBuiltinConfig | null>(null);
const [port, setPort] = useState("");
Expand Down Expand Up @@ -199,9 +201,24 @@ export function EditorMcpSetup({ editorId, servers, onBusyChange, onClose }: {
</div>
)}
{duplicate && <p className="text-xs leading-relaxed text-amber-600">A custom {copy.name} server also exists. Disable it in Manage MCP servers if you prefer Unsloth’s managed setup.</p>}
{copy.sandboxWarning && (
<p
id={`${editorId}-mcp-sandbox-warning`}
className="text-xs leading-relaxed text-amber-700 dark:text-amber-400"
>
{t("settings.sandbox.editorMcpWarning", { name: copy.name })}
</p>
)}
{config && !config.is_enabled && (
<div className="flex items-start gap-3">
<Checkbox id={`${editorId}-mcp-consent`} className="mt-0.5" checked={consent} disabled={locked} onCheckedChange={(checked) => setConsent(checked === true)} />
<Checkbox
id={`${editorId}-mcp-consent`}
aria-describedby={copy.sandboxWarning ? `${editorId}-mcp-sandbox-warning` : undefined}
className="mt-0.5"
checked={consent}
disabled={locked}
onCheckedChange={(checked) => setConsent(checked === true)}
/>
<Label htmlFor={`${editorId}-mcp-consent`} className="text-xs font-normal leading-relaxed">{copy.consent}</Label>
</div>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export const PERMISSION_MODE_OPTIONS: readonly {
{
value: "off",
label: "Run automatically",
description: "Never ask, but keep code in the sandbox",
description: "Never ask. MCP runs outside the sandbox",
icon: SparklesGlyph,
},
{
Expand Down
3 changes: 2 additions & 1 deletion studio/frontend/src/i18n/locales/ar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1718,6 +1718,7 @@ export const ar = {
levelHigh: "عالٍ",
levelLow: "منخفض",
levelHighShort: "يعمل Python والطرفية أيضًا داخل حماية النظام",
editorMcpWarning: "يشغّل {name} MCP التعليمات البرمجية بصلاحيات التطبيق خارج بيئة العزل في Unsloth، حتى عندما يكون مستوى العزل مرتفعًا. وقد تصل هذه التعليمات إلى ملفات خارج مشروعك.",
levelLowShort: "حماية برمجية فقط. الأكواد الخطرة تطلب الإذن أولًا",
levelFullAccessNote: "الوصول الكامل يوقف وضع الحماية. يُطبَّق هذا الإعداد مجدداً عند اختيار مستوى آخر.",
learnMore: "مزيد من المعلومات",
Expand Down Expand Up @@ -2444,7 +2445,7 @@ export const ar = {
auto:
"يشغّل استدعاءات الأدوات المعتادة تلقائيًا ولا يطلب الموافقة إلا عندما يبدو الإجراء خطرًا، مثل قراءة بيانات الاعتماد أو رفع الصلاحيات أو تشغيل أوامر مدمّرة.",
off:
"يشغّل كل استدعاءات الأدوات دون سؤال. تظل شيفرة Python والطرفية تعمل داخل صندوق العزل، الذي يحدّ من الملفات التي يمكنها الوصول إليها على جهازك. من دون وضع حماية يعمل، تسأل الاستدعاءات الخطرة أولاً.",
"تستخدم أدوات MCP المفعّلة صلاحيات الخادم ويمكن تشغيلها دون طلب موافقة. يستخدم Python والطرفية مستوى العزل المحدد. تظل الاستدعاءات الخطرة لهاتين الأداتين بحاجة إلى موافقة عند تعذّر عزل نظام التشغيل أو اختيار مستوى عزل منخفض.",
full:
"يشغّل كل استدعاءات الأدوات دون سؤال ويوقف صندوق عزل الشيفرة، فيمكن لشيفرة Python والطرفية قراءة أي ملف يصل إليه حسابك وتغييره.",
},
Expand Down
3 changes: 2 additions & 1 deletion studio/frontend/src/i18n/locales/cs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1879,6 +1879,7 @@ export const cs = {
levelLow: "Nízká",
levelHighShort:
"Přidává izolaci operačního systému pro Python a Terminál",
editorMcpWarning: "{name} MCP spouští kód s oprávněními této aplikace mimo sandbox Unsloth, i když je úroveň sandboxu vysoká. Kód může přistupovat k souborům mimo váš projekt.",
levelLowShort: "Pouze software. Rizikový kód se nejprve zeptá",
levelFullAccessNote:
"Úplný přístup vypíná sandbox. Toto nastavení začne znovu platit, když zvolíte jinou úroveň.",
Expand Down Expand Up @@ -2389,7 +2390,7 @@ export const cs = {
details: {
ask: "Ptá se před každým voláním nástroje, včetně kódu v terminálu a Pythonu, vyhledávání na webu, úprav souborů a nástrojů MCP. Nástroje spouštěné externím poskytovatelem se nepozastavují.",
auto: "Běžná volání nástrojů provádí samo a ptá se jen tehdy, když akce vypadá riskantně, například čtení přihlašovacích údajů, zvyšování oprávnění nebo spouštění destruktivních příkazů.",
off: "Provádí každé volání nástroje bez ptaní. Kód v Pythonu a terminálu stále běží v sandboxu, který omezuje, ke kterým souborům ve vašem počítači má přístup. Bez funkčního sandboxu operačního systému se riskantní volání nejprve zeptají.",
off: "Povolené nástroje MCP používají oprávnění serveru a mohou se spustit bez potvrzení. Python a terminál používají zvolenou úroveň sandboxu. Riziková volání těchto nástrojů stále vyžadují potvrzení, pokud izolace na úrovni operačního systému není dostupná nebo je úroveň sandboxu nízká.",
full: "Provádí každé volání nástroje bez ptaní a vypne sandbox pro kód, takže kód v Pythonu a terminálu může číst a měnit jakýkoli soubor, ke kterému má váš účet přístup.",
},
},
Expand Down
3 changes: 2 additions & 1 deletion studio/frontend/src/i18n/locales/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1722,6 +1722,7 @@ export const de = {
levelHigh: "Hoch",
levelLow: "Niedrig",
levelHighShort: "Python und Terminal laufen zusätzlich in der OS-Sandbox",
editorMcpWarning: "{name} MCP führt Code mit den Berechtigungen der App außerhalb der Unsloth-Sandbox aus, auch auf der Sandbox-Stufe Hoch. Der Code kann auf Dateien außerhalb deines Projekts zugreifen.",
levelLowShort: "Nur Software-Sandboxing. Riskanter Code fragt zuerst",
levelFullAccessNote: "Vollzugriff schaltet die Sandbox aus. Diese Einstellung gilt wieder, sobald du eine andere Stufe wählst.",
learnMore: "Weitere Informationen",
Expand Down Expand Up @@ -2473,7 +2474,7 @@ export const de = {
auto:
"Führt gewöhnliche Tool-Aufrufe selbst aus und fragt nur nach, wenn eine Aktion riskant wirkt, etwa beim Lesen von Zugangsdaten, beim Erhöhen von Rechten oder bei zerstörerischen Befehlen.",
off:
"Führt jeden Tool-Aufruf ohne Nachfrage aus. Python- und Terminal-Code läuft weiterhin in der Sandbox, die begrenzt, auf welche Dateien deines Computers er zugreifen kann. Ohne funktionierende OS-Sandbox fragen riskante Aufrufe zuerst.",
"Aktivierte MCP-Tools nutzen die Berechtigungen ihres Servers und können ohne Rückfrage laufen. Python und Terminal verwenden die gewählte Sandbox-Stufe. Riskante Aufrufe dieser Tools erfordern weiterhin eine Bestätigung, wenn keine Betriebssystem-Isolation verfügbar oder die Sandbox-Stufe Niedrig gewählt ist.",
full:
"Führt jeden Tool-Aufruf ohne Nachfrage aus und schaltet die Code-Sandbox ab, sodass Python- und Terminal-Code jede Datei lesen und ändern kann, auf die dein Konto zugreifen kann.",
},
Expand Down
3 changes: 2 additions & 1 deletion studio/frontend/src/i18n/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1727,6 +1727,7 @@ export const en = {
levelHigh: "High",
levelLow: "Low",
levelHighShort: "Adds OS isolation to Python and Terminal",
editorMcpWarning: "{name} MCP runs code outside Unsloth’s sandbox, even with Sandbox High on. That code can access any file the app can, including files outside your project.",
levelLowShort: "Software only. Risky code asks first",
levelFullAccessNote: "Full access turns the sandbox off. This setting applies again when you pick another level.",
learnMore: "Learn more",
Expand Down Expand Up @@ -2216,7 +2217,7 @@ export const en = {
auto:
"Runs routine tool calls on its own and only asks when an action looks risky, such as reading credentials, escalating privileges or running destructive commands.",
off:
"Runs every tool call without asking. Python and terminal code still run in the sandbox, which limits which files they can reach on your computer. Without a working OS sandbox, risky calls ask first.",
"Enabled MCP tools use the server’s permissions and can run without asking. Python and Terminal use the selected sandbox level. Risky calls to those tools still ask when OS isolation is unavailable or Sandbox Low is selected.",
full:
"Runs every tool call without asking and turns off the code sandbox, so Python and terminal code can read and change any file your account can access.",
},
Expand Down
3 changes: 2 additions & 1 deletion studio/frontend/src/i18n/locales/es-419.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1889,6 +1889,7 @@ export const es419 = {
levelHigh: "Alto",
levelLow: "Bajo",
levelHighShort: "Agrega aislamiento del sistema a Python y Terminal",
editorMcpWarning: "{name} MCP ejecuta código con los permisos de la app fuera del entorno aislado de Unsloth, incluso con el nivel de aislamiento alto. El código puede acceder a archivos fuera de tu proyecto.",
levelLowShort: "Solo software. El código riesgoso pregunta primero",
levelFullAccessNote:
"El acceso total desactiva el sandbox. Esta opción vuelve a aplicarse cuando elijas otro nivel.",
Expand Down Expand Up @@ -2405,7 +2406,7 @@ export const es419 = {
details: {
ask: "Pregunta antes de cada llamada a herramienta, incluido el código de terminal y Python, las búsquedas web, la edición de archivos y las herramientas MCP. Las herramientas que ejecuta un proveedor externo no se pausan.",
auto: "Ejecuta por sí solo las llamadas a herramientas habituales y solo pregunta cuando una acción parece riesgosa, como leer credenciales, elevar privilegios o ejecutar comandos destructivos.",
off: "Ejecuta todas las llamadas a herramientas sin preguntar. El código de Python y terminal sigue ejecutándose en el sandbox, que limita a qué archivos de tu computadora puede acceder. Sin un sandbox del sistema que funcione, las llamadas riesgosas preguntan primero.",
off: "Las herramientas MCP habilitadas usan los permisos del servidor y pueden ejecutarse sin pedir aprobación. Python y la terminal usan el nivel de aislamiento seleccionado. Las llamadas riesgosas a estas herramientas siguen requiriendo aprobación si el aislamiento del sistema operativo no está disponible o si se selecciona el nivel bajo.",
full: "Ejecuta todas las llamadas a herramientas sin preguntar y desactiva el sandbox de código, así que el código de Python y terminal puede leer y cambiar cualquier archivo al que tenga acceso tu cuenta.",
},
},
Expand Down
3 changes: 2 additions & 1 deletion studio/frontend/src/i18n/locales/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1721,6 +1721,7 @@ export const es = {
levelHigh: "Alto",
levelLow: "Bajo",
levelHighShort: "Python y Terminal también se ejecutan en la sandbox del sistema",
editorMcpWarning: "{name} MCP ejecuta código con los permisos de la app fuera del entorno aislado de Unsloth, incluso con el nivel de aislamiento alto. El código puede acceder a archivos fuera de tu proyecto.",
levelLowShort: "Solo sandbox de software. El código riesgoso pregunta antes",
levelFullAccessNote: "Acceso total desactiva el sandbox. Este ajuste vuelve a aplicarse cuando elijas otro nivel.",
learnMore: "Más información",
Expand Down Expand Up @@ -2468,7 +2469,7 @@ export const es = {
auto:
"Ejecuta por sí solo las llamadas habituales y solo pregunta cuando una acción parece arriesgada, como leer credenciales, elevar privilegios o ejecutar comandos destructivos.",
off:
"Ejecuta todas las llamadas a herramientas sin preguntar. El código de Python y terminal sigue ejecutándose en el sandbox, que limita a qué archivos de tu equipo puede acceder. Sin un sandbox del sistema que funcione, las llamadas arriesgadas preguntan primero.",
"Las herramientas MCP habilitadas usan los permisos del servidor y pueden ejecutarse sin pedir aprobación. Python y el terminal usan el nivel de aislamiento seleccionado. Las llamadas de riesgo a estas herramientas siguen requiriendo aprobación si el aislamiento del sistema operativo no está disponible o si se selecciona el nivel bajo.",
full:
"Ejecuta todas las llamadas a herramientas sin preguntar y desactiva el sandbox de código, así el código de Python y terminal puede leer y cambiar cualquier archivo al que tenga acceso tu cuenta.",
},
Expand Down
3 changes: 2 additions & 1 deletion studio/frontend/src/i18n/locales/fa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1865,6 +1865,7 @@ export const fa = {
levelHigh: "بالا",
levelLow: "پایین",
levelHighShort: "جداسازی سیستم‌عامل را به Python و Terminal اضافه می‌کند",
editorMcpWarning: "{name} MCP کد را با مجوزهای برنامه، خارج از سندباکس Unsloth اجرا می‌کند، حتی وقتی سطح سندباکس بالا است. این کد می‌تواند به فایل‌های خارج از پروژه دسترسی داشته باشد.",
levelLowShort: "فقط نرم‌افزاری. کد پرخطر ابتدا اجازه می‌گیرد",
levelFullAccessNote:
"دسترسی کامل سندباکس را خاموش می‌کند. وقتی سطح دیگری را انتخاب کنید، این تنظیم دوباره اعمال می‌شود.",
Expand Down Expand Up @@ -2363,7 +2364,7 @@ export const fa = {
details: {
ask: "پیش از هر فراخوانی ابزار، از جمله کد ترمینال و Python، جستجوهای وب، ویرایش فایل‌ها و ابزارهای MCP، اجازه می‌گیرد. ابزارهایی که یک ارائه‌دهندهٔ خارجی اجرا می‌کند متوقف نمی‌شوند.",
auto: "فراخوانی‌های معمول ابزار را خودش اجرا می‌کند و فقط وقتی اقدامی پرخطر به نظر برسد اجازه می‌گیرد، مانند خواندن اطلاعات ورود، افزایش سطح دسترسی یا اجرای فرمان‌های مخرب.",
off: "هر فراخوانی ابزار را بدون پرسیدن اجرا می‌کند. کد Python و ترمینال همچنان در سندباکس اجرا می‌شود که محدود می‌کند به کدام فایل‌های رایانهٔ شما دسترسی داشته باشند. بدون سندباکس سیستم‌عامل فعال، فراخوانی‌های پرخطر ابتدا اجازه می‌گیرند.",
off: "ابزارهای فعال MCP از مجوزهای سرور استفاده می‌کنند و ممکن است بدون تأیید اجرا شوند. Python و ترمینال از سطح سندباکس انتخاب‌شده استفاده می‌کنند. اگر جداسازی سیستم‌عامل در دسترس نباشد یا سطح سندباکس پایین باشد، فراخوانی‌های پرخطر این ابزارها همچنان به تأیید نیاز دارند.",
full: "هر فراخوانی ابزار را بدون پرسیدن اجرا می‌کند و سندباکس کد را خاموش می‌کند، بنابراین کد Python و ترمینال می‌تواند هر فایلی را که حساب شما به آن دسترسی دارد بخواند و تغییر دهد.",
},
},
Expand Down
Loading
Loading