seeany-sun-mcp

seeany-sun-mcp

MCP server for SeeAny Sun enabling product image generation, smart creation, task polling, and download via natural language, with demo mode for offline simulation.

Category
Visit Server

README

SeeAny Sun MCP

本目录提供一个可被 Codex、Claude Desktop、Cursor 等 MCP Client 调用的本地 stdio MCP Server。

它支持两种模式:

  • demo:不需要密钥,使用仓库内的商品图片做离线模拟,不调用付费 API。
  • live:设置 SEEANY_API_KEY 后调用主站 https://api.seeany.com,支持图片上传、智能创作、任务轮询、下载和 AI 润色。

鉴权环境变量

统一使用:

SEEANY_API_KEY=sk-sa-xxxxxxxx

不要把真实 Key 写入 Git、浏览器代码或聊天消息。复制 .env.example 到本机环境后填写即可。没有 Key 时服务自动进入 Demo 模式;也可以用 SEEANY_MCP_MODE=demo 强制离线模式。

本地安装与测试

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

Smoke test 会强制使用 Demo 模式,不会产生真实费用。

如需执行一次真实链路验收(会产生主站账户费用),确认已设置新 Key 后运行:

npm run live-smoke

连接 Codex

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

安装为 Codex 插件(MCP + Skill)

仓库还提供 Codex 插件清单:安装后会同时得到 SeeAny MCP 工具和 seeany-product-visuals 商品视觉工作流 Skill。

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

安装后请新开一个 Codex 对话;真实出图时仍需在本机环境设置 SEEANY_API_KEY。如只需 MCP 工具,使用上面的 codex mcp add 即可。

如果使用真实 API,请在启动 MCP 的同一环境中设置 SEEANY_API_KEY。连接后建议先调用 seeany_get_capabilities,再按以下顺序调用:

  1. seeany_upload_asset(有参考图时)
  2. seeany_refine_prompt(可选)
  3. seeany_generate_product_image
  4. seeany_wait_generation
  5. seeany_download_assets

MCP Inspector

npm run inspect

当前真实 API 映射

MCP 工具 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/smarttaskaiTypeId=113aiType=smartImg
seeany_get_generation / seeany_wait_generation GET /api/developer/task/status

任务默认采用异步模式。主站 API 的图片/视频任务按账户配置计费;seeany_quote_generation 只返回估算值,不会预扣费用。

SeeAny Skill

仓库内包含 skills/seeany-product-visuals,用于指导 Agent 按“上传参考图 → 提示词润色 → 询价 → 生成 → 轮询 → 下载”的完整流程调用 MCP。npm 包也会包含这个 Skill 目录。

npm 包名

当前包名定为 seeany-sun-mcp,适合先发布一个公开的无作用域包。正式发布前需要在 npm 上确认名称可用;如果 SeeAny 已建立 npm scope,也可以迁移为 @seeany/sun-mcp

发布后的最简调用方式:

npx --yes seeany-sun-mcp

发布前检查包内容:

npm run pack:check

自动测试与发布

GitHub Actions 会在 main 分支 Push 和 Pull Request 时,使用 Node.js 20、22、24 执行插件校验、MCP Smoke Test 和 npm 打包检查。

发布新版本时,先同步更新 package.jsonpackage-lock.json.codex-plugin/plugin.json 的版本,再创建相同版本的 Git Tag:

git tag v0.5.0
git push origin v0.5.0

release.yml 会验证 Tag 与包版本一致,然后通过 npm Trusted Publishing 发布并创建 GitHub Release。首次使用前,需要在 npm 包设置中添加 GitHub Actions Trusted Publisher:

  • GitHub 用户:juin20260102-oss
  • 仓库:seeany-sun-mcp
  • Workflow:release.yml
  • Allowed action:npm publish

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured