{"slug": "how-to-use-nanobanana-mcp-in-cursor-for-practical-image-editing-workflows", "title": "How to Use NanoBanana MCP in Cursor for Practical Image Editing Workflows", "summary": "A developer has documented a workflow for using a hosted ShortURL MCP server inside Codex CLI to shorten single links and batches of URLs without leaving the terminal. The guide configures the remote HTTP MCP endpoint in ~/.codex/config.toml with a Bearer token, then invokes the shorturl_create tool through natural-language instructions, with the model handling output formatting such as Markdown tables.", "body_md": "Long URLs are easy to copy once and surprisingly annoying to manage when a release, newsletter, or launch note contains five of them; this guide shows how to let Codex CLI shorten them without leaving the terminal.\n\nThe setup is deliberately small: Codex CLI acts as the client, a hosted ShortURL MCP server exposes one tool, and your instruction in the terminal becomes a tool call.\n\nThe MCP server documented by Ace Data Cloud is:\n\n```\nhttps://shorturl.mcp.acedata.cloud/mcp\n```\n\nIt exposes a single tool named `shorturl_create`. That tool handles both individual links and batches, so you do not need separate integrations for a one-off URL and a list of release-note links.\n\nThis is a useful first MCP project because the behavior is easy to verify. You provide one or more long URLs, Codex calls the tool, and you inspect the shortened results. There is no complicated agent state, database, or local service to maintain.\n\nCodex reads MCP server definitions from `~/.codex/config.toml`. Open that file in your editor and add the following block:\n\n```\n[mcp_servers.shorturl]\nurl = \"https://shorturl.mcp.acedata.cloud/mcp\"\ntype = \"http\"\n\nhttp_headers = { \"Authorization\" = \"Bearer yourToken\" }\n```\n\nReplace `yourToken` with your Ace Data Cloud API token. Keep the `Bearer` prefix and the space after it: the full value is sent through the `Authorization` header when Codex connects to the remote MCP server.\n\nA few details are worth noticing:\n\n`shorturl` is the local name of the MCP server inside Codex. It is descriptive, but it is not the remote tool name.`url` points to the hosted MCP endpoint.`type = \"http\"` tells Codex that this is a remote HTTP MCP server.`http_headers` carries authentication without putting the token into every prompt.\nSave the file, then restart your Codex session. The documentation states that the tool is loaded on the next startup, so changing the TOML while a session is already running may not make it immediately available.\n\nTreat the token like any other credential. Do not paste the completed configuration into an issue, commit it to a dotfiles repository, or include it in a screenshot.\n\nFor the first test, use a direct instruction that makes the desired tool obvious:\n\n```\nShorten this link: https://platform.acedata.cloud\n```\n\nCodex should recognize that the request matches the ShortURL capability and call `shorturl_create`. Starting with one URL helps separate connection problems from batch-input problems.\n\nIf nothing happens, check the basics in this order:\n\n`~/.codex/config.toml`.` https://shorturl.mcp.acedata.cloud/mcp`.` Bearer`.\nThat last point matters in agent workflows. “Prepare this link for sharing” leaves room for interpretation, while “Shorten this link” maps directly to the available tool.\n\nThe more practical use case is shortening several links at once. For example, after preparing release notes, you can give Codex a compact task like this:\n\n```\nShorten these links for a release email:\n- https://example.com/releases/2.4.0\n- https://example.com/docs/migration-guide\n- https://example.com/changelog\n\nReturn a Markdown list that keeps each original label next to its short URL.\n```\n\nThe documented ShortURL MCP supports batch creation, while Codex can take care of the surrounding formatting. This division of labor is useful: the MCP tool performs the external action, and the model turns the returned values into the shape your workflow needs.\n\nYou can use the same pattern for launch checklists, support replies, event resources, or a set of links collected during research. Ask for the final format you actually need—Markdown, a plain-text email section, or a checklist—but keep the URL-shortening action explicit.\n\nTool-enabled terminal workflows are most reliable when the instruction has three parts:\n\nFor example:\n\n```\nShorten the five URLs below. Preserve their order, do not rewrite the titles,\nand return a two-column Markdown table with Title and Short URL.\n```\n\nThis does not add hidden capabilities to `shorturl_create`; it simply gives Codex a clear way to present the tool's output. If a URL is malformed, fix the source input instead of asking the agent to guess what you intended.\n\nI like this integration as a first MCP exercise because it solves a real, boring problem with very little machinery: one config block, one remote tool, and a result you can verify immediately. The exact setup and current examples are available in the [Codex with ShortURL MCP documentation](https://platform.acedata.cloud/documents/codex-mcp-short-url).", "url": "https://wpnews.pro/news/how-to-use-nanobanana-mcp-in-cursor-for-practical-image-editing-workflows", "canonical_source": "https://dev.to/germey/how-to-use-nanobanana-mcp-in-cursor-for-practical-image-editing-workflows-3fdc", "published_at": "2026-10-02 01:05:13+00:00", "updated_at": "2026-10-02 01:14:27.603179+00:00", "lang": "en", "topics": ["agent-protocols", "ai-agents", "developer-tools", "ai-tools"], "entities": ["Codex CLI", "Ace Data Cloud", "ShortURL MCP", "shorturl_create"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/how-to-use-nanobanana-mcp-in-cursor-for-practical-image-editing-workflows", "markdown": "https://wpnews.pro/news/how-to-use-nanobanana-mcp-in-cursor-for-practical-image-editing-workflows.md", "text": "https://wpnews.pro/news/how-to-use-nanobanana-mcp-in-cursor-for-practical-image-editing-workflows.txt", "jsonld": "https://wpnews.pro/news/how-to-use-nanobanana-mcp-in-cursor-for-practical-image-editing-workflows.jsonld"}}