Skip to content

armgit / mso

Public Imported from GitHub
0

Browser-based graphical shell and control plane for a Linux server you own — real terminal, file manager, live metrics and BYOK AI in one mobile-first workspace. Next.js 16 · React 19 · node-pty · Tailwind v4 · shadcn/ui. Public alpha, self-hosted.

fix(mcp): allow ChatGPT India South Central file storage

rahmanef63749acaf3f273
diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md
index cd2f58a6..b7230210 100644
--- a/docs/CHANGELOG.md
+++ b/docs/CHANGELOG.md
@@ -8,8 +8,17 @@ this is the *what*, and it is what Settings → About shows as “What's new”.
**Added**
+- `mcp` import ChatGPT generated files
- `mcp` add provider-backed image generation
+**Fixed**
+
+- `mcp` allow ChatGPT India South Central file storage
+- `mcp` allow ChatGPT New Zealand file storage
+- `mcp` allow ChatGPT Australia file storage
+- `mcp` allow ChatGPT regional file storage
+- `mcp` report rejected file host safely
+
## 2026-08-19
**Added**
diff --git a/lib/mcp/openai-file-upload.test.ts b/lib/mcp/openai-file-upload.test.ts
index d703c32f..9edfae6a 100644
--- a/lib/mcp/openai-file-upload.test.ts
+++ b/lib/mcp/openai-file-upload.test.ts
@@ -66,6 +66,22 @@ describe("ChatGPT file host allowlist", () => {
expect(uploadInto).toHaveBeenCalledTimes(1);
});
+ it("accepts the observed OpenAI India South Central blob host", async () => {
+ const result = await importOpenAiProvidedFile({
+ file: {
+ download_url: "https://oaisdmntprindiasocentral.blob.core.windows.net/container/file.png?sig=redacted",
+ file_id: "file_test_in",
+ mime_type: "image/png",
+ file_name: "file-in.png",
+ size: 4,
+ },
+ dest: "/home/antinrml/generated-images",
+ filename: "file-in.png",
+ });
+ expect(result.bytes).toBe(4);
+ expect(uploadInto).toHaveBeenCalledTimes(1);
+ });
+
it("rejects an unrelated Azure blob account", async () => {
await expect(importOpenAiProvidedFile({
file: {
diff --git a/lib/mcp/openai-file-upload.ts b/lib/mcp/openai-file-upload.ts
index 985484f7..edf1de34 100644
--- a/lib/mcp/openai-file-upload.ts
+++ b/lib/mcp/openai-file-upload.ts
@@ -39,6 +39,8 @@ function trustedDownloadUrl(raw: string): URL {
// ChatGPT-generated conversation files observed from the New Zealand North region.
// Exact account only; arbitrary Azure Blob accounts remain rejected.
"oaisdmntprnznorth.blob.core.windows.net",
+ // ChatGPT native image generation, India South Central.
+ "oaisdmntprindiasocentral.blob.core.windows.net",
]);
if (!exactOpenAiHosts.has(host) && !host.endsWith(".oaiusercontent.com")) {
throw new HostError(`file.download_url host is not allowed: ${host}`);