Skip to main content
Glama

SeeAny Sun MCP

This directory provides a local stdio MCP Server that can be called by MCP clients such as Codex, Claude Desktop, and Cursor.

It supports two modes:

  • demo: no API key required; uses product images in the repository for offline simulation and does not call paid APIs.

  • live: after setting SEEANY_API_KEY, calls the main site https://api.seeany.com; supports image upload, AI creation, task polling, download, and AI refinement.

Authentication environment variables

Use uniformly:

SEEANY_API_KEY=sk-sa-xxxxxxxx

Do not write the real Key into Git, browser code, or chat messages. Copy .env.example to your local environment and fill it in. If there is no Key, the service automatically enters Demo mode; you can also use SEEANY_MCP_MODE=demo to force offline mode.

Related MCP server: metalevel/snapix-mcp-server

Local installation and testing

cd mcp-server
npm install
npm run build
npm run smoke

The Smoke test forces Demo mode and will not incur real charges.

If you need to perform a real end-to-end acceptance test (which will incur charges on the main account), after confirming that the new Key has been set, run:

npm run live-smoke

Connecting Codex

codex mcp add seeany-sun-mcp -- npx --yes seeany-sun-mcp

Install as a Codex plugin (MCP + Skill)

The repository also provides a Codex plugin manifest: after installation, you will get both the SeeAny MCP tools and the seeany-product-visuals product visual workflow Skill.

codex plugin marketplace add juin20260102-oss/seeany-sun-mcp --sparse .agents/plugins
codex plugin add seeany-sun-mcp@seeany

After installation, start a new Codex conversation; for real image generation, you still need to set SEEANY_API_KEY in your local environment. If you only need the MCP tools, use the codex mcp add command above.

If you use the real API, set SEEANY_API_KEY in the same environment where you start the MCP. After connecting, it is recommended to call seeany_get_capabilities first, then call in the following order:

  1. seeany_upload_asset (when there is a reference image)

  2. seeany_refine_prompt (optional)

  3. seeany_generate_product_image

  4. seeany_wait_generation

  5. seeany_download_assets

MCP Inspector

npm run inspect

Current real API mapping

MCP tool

SeeAny API

seeany_upload_asset

POST /api/upload/image

seeany_refine_prompt

POST /api/prompt-tools/ai-refine

seeany_generate_product_image

POST /api/ai/smarttask, aiTypeId=113, aiType=smartImg

seeany_get_generation / seeany_wait_generation

GET /api/developer/task/status

Tasks default to asynchronous mode. The main site API's image/video tasks are billed according to account configuration; seeany_quote_generation only returns an estimate and does not pre-deduct charges.

SeeAny Skill

The repository includes skills/seeany-product-visuals, used to guide the Agent through the complete flow of “upload reference image → prompt refinement → quote → generate → poll → download” when calling the MCP. The npm package also includes this Skill directory.

npm package name

The current package name is set to seeany-sun-mcp, suitable for first publishing a public unscoped package. Before the official release, you need to confirm the name is available on npm; if SeeAny has established an npm scope, you can also migrate to @seeany/sun-mcp.

The simplest invocation after publishing:

npx --yes seeany-sun-mcp

Check the package contents before publishing:

npm run pack:check

Automated testing and publishing

GitHub Actions will run on Push and Pull Request to the main branch using Node.js 20, 22, and 24 to perform plugin validation, MCP Smoke Test, and npm packaging checks.

When publishing a new version, first update the versions in package.json, package-lock.json, and .codex-plugin/plugin.json in sync, then create a Git Tag with the same version:

git tag v0.5.0
git push origin v0.5.0

release.yml verifies that the Tag matches the package version, then publishes via npm Trusted Publishing and creates a GitHub Release. Before first use, you need to add the GitHub Actions Trusted Publisher in the npm package settings:

  • GitHub user: juin20260102-oss

  • Repository: seeany-sun-mcp

  • Workflow: release.yml

  • Allowed action: npm publish

Available Tools

11 tools
seeany_create_product_visualA

Execute a previously quoted product-visual plan, wait for its stored job, and download outputs. In live mode confirm_cost must be true. Reusing a plan_id resumes its recorded job instead of submitting another one.

Inputs: plan_id (required), confirm_cost (required), output_dir, timeout_seconds.

seeany_download_assetsA

Download completed SeeAny output images into a local directory and return their file paths.

Inputs: job_id (required), output_dir (required).

seeany_generate_product_imageB

Create an asynchronous SeeAny product-image task, then use seeany_wait_generation to receive results.

Inputs: prompt (required), count, model, use_case, +3 more.

seeany_get_accountA
Read-only

Show whether this MCP is using the local demo or the authenticated SeeAny API.

Inputs: no named parameters.

seeany_get_capabilitiesA
Read-only

List SeeAny image generation models, ratios, resolutions, and current execution mode.

Inputs: no named parameters.

seeany_get_generationA
Read-only

Get the latest status, progress, and output URLs for a SeeAny generation task.

Inputs: job_id (required).

seeany_plan_product_visualA
Read-only

Plan a complete product-visual job and estimate its cost without creating a paid generation task. Returns a plan_id for explicit execution.

Inputs: request (required), count, model, use_case, +4 more.

seeany_quote_generationA
Read-only

Estimate generation cost before creating a task. This is an estimate and does not reserve credits.

Inputs: count (required), model (required), use_case (required), resolution.

seeany_refine_promptB

Use SeeAny AI prompt refinement to turn a rough product-image request into a production-ready prompt.

Inputs: prompt (required), action, extra_context, reference_asset_ids.

seeany_upload_assetA

Upload a local product image to SeeAny and return an asset id and URL for later generation.

Inputs: file_path (required).

seeany_wait_generationA
Read-only

Poll a SeeAny generation task until it reaches a terminal state or the timeout expires.

Inputs: job_id (required), timeout_seconds.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 11 tools

    Disambiguation2/5

    Several tools overlap: seeany_plan_product_visual and seeany_quote_generation both estimate costs, while seeany_create_product_visual and seeany_generate_product_image both create generation jobs and handle waiting/downloading. The separate 'visual' and 'image' workflows are not clearly distinguished by descriptions, so an agent could easily pick the wrong one.

    Naming Consistency5/5

    All tools share the seeany_ prefix and follow a consistent verb_noun snake_case pattern (get_account, upload_asset, generate_product_image, wait_generation). There are no mixed conventions or unpredictable names.

    Tool Count4/5

    At 11 tools, the server is within a reasonable scope for an image-generation API client. It could be trimmed by consolidating overlapping quote/plan and create/generate tools, but the count is not excessive.

    Completeness4/5

    The core lifecycle is covered: asset upload, prompt refinement, cost estimation, job creation, status polling, waiting, and downloading outputs. Missing cancellation or asset listing are minor gaps, not dead ends.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers