mirror of
https://github.com/Dasemu/gemini-media-mcp.git
synced 2026-11-26 23:36:09 +00:00
chore: drop Zenvairo branding ahead of repo transfer
Removes the org name/URLs from docs, deploy configs, package scope and internal service/test strings, and drops the stale shared-LXC nginx snapshot (deploy/default.conf.lxc210) that also exposed sibling services. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c93abc1781
commit
685c02ed81
17 files changed
+29
-177
No files matched your search
+1
-1
@@ -19,7 +19,7 @@ export async function composeVideoOverlay(
|
||||
baseOutput: StoredOutput,
|
||||
overlays: VideoOverlay[],
|
||||
): Promise<StoredOutput[]> {
|
||||
const workDir = await mkdtemp(path.join(os.tmpdir(), "zenvairo-compose-"));
|
||||
const workDir = await mkdtemp(path.join(os.tmpdir(), "media-compose-"));
|
||||
const temporaryOutput = path.join(mediaDir, `${generationId}-0.download`);
|
||||
try {
|
||||
const metadata = await probeVideo(baseOutput.path);
|
||||
|
||||
+2
-2
@@ -25,7 +25,7 @@ const orphanCleanupInterval = setInterval(() => void orphanCleanup().catch((erro
|
||||
orphanCleanupInterval.unref();
|
||||
|
||||
function buildServer(): McpServer {
|
||||
const server = new McpServer({ name: "zenvairo-google-media", version: "1.0.0" });
|
||||
const server = new McpServer({ name: "gemini-veo-media", version: "1.0.0" });
|
||||
registerTools(server, jobs);
|
||||
return server;
|
||||
}
|
||||
@@ -61,7 +61,7 @@ app.get("/public-media/:filename", async (req, res) => {
|
||||
|
||||
app.use(authenticate);
|
||||
|
||||
app.get("/health", (_req, res) => res.json({ ok: true, service: "zenvairo-google-media", googleCredentialsConfigured: Boolean(process.env.GEMINI_API_KEY), publicMediaSigningConfigured: publicMediaSigningConfigured() }));
|
||||
app.get("/health", (_req, res) => res.json({ ok: true, service: "gemini-veo-media", googleCredentialsConfigured: Boolean(process.env.GEMINI_API_KEY), publicMediaSigningConfigured: publicMediaSigningConfigured() }));
|
||||
app.get("/media/:filename", (req, res) => {
|
||||
if (!/^[0-9a-f-]{36}-\d+\.(png|jpg|mp4)$/.test(req.params.filename)) return res.status(404).json({ error: "not_found" });
|
||||
return res.sendFile(req.params.filename, { root: mediaDir, dotfiles: "deny", maxAge: 0 }, (error) => {
|
||||
|
||||
+1
-1
@@ -64,7 +64,7 @@ export function validatePublicMediaSignature(
|
||||
|
||||
function sign(filename: string, expires: number, secret: string): string {
|
||||
return createHmac("sha256", secret)
|
||||
.update(`zenvairo-public-media-v1\n${filename}\n${expires}`, "utf8")
|
||||
.update(`media-mcp-public-media-v1\n${filename}\n${expires}`, "utf8")
|
||||
.digest("base64url");
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -33,7 +33,7 @@ export function registerTools(server: McpServer, jobs: JobManager): void {
|
||||
server.tool("who_am_i", "List available Google image/video models, accepted arguments and current cost estimates.", {
|
||||
taskTraceId: taskTraceIdSchema,
|
||||
}, async ({ taskTraceId }) => jsonResult({
|
||||
service: "Zenvairo Google Media MCP",
|
||||
service: "Gemini Veo Media MCP",
|
||||
taskTraceId,
|
||||
backend: "Gemini Developer API",
|
||||
authentication: { googleCredentialsConfigured: Boolean(process.env.GEMINI_API_KEY), credentialsExposed: false },
|
||||
@@ -133,7 +133,7 @@ export function registerTools(server: McpServer, jobs: JobManager): void {
|
||||
if (job.status === "COMPLETED" && job.outputs) {
|
||||
const allPresent = (await Promise.all(job.outputs.map(outputExists))).every(Boolean);
|
||||
if (!allPresent) return jsonResult({ ...payload, status: "FAILED", error: { code: "MEDIA_EXPIRED", message: "Generated media is no longer available", retryable: false } }, true);
|
||||
payload.outputs = await outputPayload(job.outputs, process.env.PUBLIC_BASE_URL || "https://mcp.zenvairo.es/zenvairogoogle", include_base64);
|
||||
payload.outputs = await outputPayload(job.outputs, process.env.PUBLIC_BASE_URL || "http://127.0.0.1:8087", include_base64);
|
||||
}
|
||||
return jsonResult(payload, job.status === "FAILED");
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user