360 Secure SkillHub
360 安全技能中心

artsonia-mcp

该 Skill 说明如何配置 Artsonia MCP 服务器,让用户用自然语言查看学生艺术档案与活动、读取或发布作品评论、查看粉丝并管理通知,也可下载作品图片。

分类:自动化
chrischall
chrischall
热度 40.43
最近更新 2026-11-07 20:09:52

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add chrischall/artsonia-mcp
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
artsonia-mcp
description
Access Artsonia student-art portfolios, comments, and fans via MCP. Use when the user asks about a child's artwork, wants to post an art comment, check fans, view portfolios, or manage Artsonia notifications. Triggers on phrases like "show me Emma's latest artwork", "post a comment on that painting", "who are the fans for this student", "invite grandma as a fan", or any request involving student art portfolios on Artsonia. Requires artsonia-mcp installed and the artsonia server registered (see Setup below).

artsonia-mcp

MCP server for Artsonia — natural-language access to student-art portfolios, comments, and fans.

Setup

Option A — npx (recommended)

Add to .mcp.json in your project or ~/.claude/mcp.json:

{
  "mcpServers": {
    "artsonia": {
      "command": "npx",
      "args": ["-y", "artsonia-mcp"],
      "env": {
        "ARTSONIA_USERNAME": "your-email@example.com",
        "ARTSONIA_PASSWORD": "your-password"
      }
    }
  }
}

Option B — from source

git clone https://github.com/chrischall/artsonia-mcp
cd artsonia-mcp
npm install && npm run build

Then add to .mcp.json:

{
  "mcpServers": {
    "artsonia": {
      "command": "node",
      "args": ["/path/to/artsonia-mcp/dist/index.js"],
      "env": {
        "ARTSONIA_USERNAME": "your-email@example.com",
        "ARTSONIA_PASSWORD": "your-password"
      }
    }
  }
}

Or use a .env file in the project directory with ARTSONIA_USERNAME=<value> and ARTSONIA_PASSWORD=<value>.

Authentication

Username/password auth using your Artsonia parent/fan account credentials. The server logs in and maintains a session cookie.

Tools

Core

Tool Description
artsonia_healthcheck Check connectivity and authentication status
artsonia_list_students List all students linked to the account

Portfolio & Artwork

Tool Description
artsonia_get_activity Get recent activity feed for a student
artsonia_get_portfolio Get a student's art portfolio. Optional include_details: boolean (default false) fetches each artwork's full detail (title/project/grade/views/…) concurrently and merges it into the rows; omit it for the fast, lean tiles.
artsonia_get_artwork Get details for a single artwork
artsonia_download_artwork Download a student's artwork images to a local folder. dest must be inside ARTSONIA_OUTPUT_DIR when set, else ~/Downloads or ~/Pictures; any other folder is refused before anything is fetched. On a hosted server nothing is written to disk: images come back inline (10 MiB per result), the rest as one signed zip link in archive.url (give it to the user; it expires at archive.expires_at), and each downloaded entry says how in delivered_via. Optional path_template: string (e.g. "{grade}/{project}" or "{school_year}") organizes downloads into subfolders under dest, composed with filename_template — same tokens ({title} {project} {grade} {date} {school_year} {artwork_id}), segments slugified like filenames, empty tokens collapse, and paths stay deterministic so skip_existing re-runs remain idempotent. Optional embed_metadata: boolean (default false) embeds each image's title/project/grade and source date (its Last-Modified) into the JPEG's EXIF (ImageDescription, DateTimeOriginal) and IPTC (title, keywords, date) so the metadata survives renames/moves and is searchable in Spotlight/Apple Photos; the count is returned as embedded_count (best-effort — a failed embed writes the original bytes). Optional write_index: boolean (default false) writes an index.json manifest into the destination listing the downloaded items (artwork_id, title, file — dest-relative, grade, project, date); the manifest path is returned as index_file. Optional write_metadata: boolean (default false) writes a per-artwork <image-name>.json sidecar next to each image with the artwork's comments and teacher feedback (plus title/project/grade); the count is returned as metadata_count. Optional include_private: boolean (default true) — set false to exclude private pieces (private_excluded_count reports how many were dropped). The result carries totals (total_bytes, downloaded_count/skipped_count/failed_count/private_count), a per-file is_private flag, omitted_count/omitted (images fetched but NOT delivered — over the inline cap with no blob store, or a failed zip upload — each with its name, title when known, and reason; they are not in downloaded), and — on unfiltered runs — a count_check against the student's artwork_count with a warning when the pull looks partial. Runs in one call — no confirmation step.

Social

Tool Description
artsonia_list_comments List comments on an artwork
artsonia_get_fans Get the fan list for a student
artsonia_post_comment Post a comment on an artwork
artsonia_invite_fan Invite someone to become a fan of a student
artsonia_set_notifications Update notification preferences for a student

In context groups

On a host that groups MCPs by context (mcp-host's context groups), every tool here except artsonia_healthcheck is in the school group. The one canonical read is what's new: artsonia_get_feedback — teacher feedback on a student's artwork. Its subject is artist_id, which publishes the followed students' names as an enum listed once at server start (bounded at 5 s; no enum when the listing fails or nobody is followed) — the names are the schema's contract (a top-level enum, never anyOf) — while the server still accepts a raw numeric artist_id. view: "brief" answers one line per item, <message> — no date — <unread|read> (Artsonia dates feedback only relatively), inside the untrusted-data envelope as data: string[], or -- none; a message that starts with -- or \ is escaped with one leading \ so it never reads as a note. Nothing here answers what's due or what's on.

A compound ask looks like "anything new from school — and any new art feedback?": the group fans out to each student's feedback beside the other school MCPs' reads. On the fetchproxy (browser) transport — how a hosted Artsonia runs — the group answers "needs your browser open" for this MCP when no signed-in Artsonia tab is reachable.

Confirming writes

artsonia_post_comment and artsonia_invite_fan ask the user to confirm first. (artsonia_set_notifications, artsonia_mark_feedback_read and artsonia_download_artwork run in one call with no confirmation step.) Where the client can show a confirmation prompt, it does (unless the server sets MCP_CONFIRM_ELICITATION=off). Otherwise the first call changes nothing and returns status: "confirmation-required" with a preview of exactly what would be sent and a confirmToken: show the preview to the user, and only after they approve in chat call the tool again with the same arguments plus confirmToken. A token works once (TOKEN_REUSED), expires, and is refused as DRAFT_CHANGED (with a fresh preview and token) if the arguments or the data it acts on changed in between. MCP_CONFIRM_MODE (ask-user default / auto / refuse) controls this fallback.

Environment Variables

Variable Required Description
ARTSONIA_USERNAME Yes Your Artsonia login email address
ARTSONIA_PASSWORD Yes Your Artsonia account password
ARTSONIA_TRANSPORT No Override transport: stdio (default), sse, or fetchproxy
ARTSONIA_WS_PORT No WebSocket port when using sse transport
ARTSONIA_INLINE_DOWNLOADS No Set to 1 to return artsonia_download_artwork images as inline base64 blocks instead of writing them to disk. Implied on a hosted deployment (MCP_DATA_DIR or MCP_BLOB_BASE_URL set). Leave unset for local installs.
ARTSONIA_SESSION_CACHE No Set to false to disable the on-disk session cache and log in on every start. Defaults to enabled (direct transport only).
MCP_CONFIRM_MODE No What a write does on a client that cannot show a confirmation prompt: ask-user (default — preview + token, user approves in chat), auto (the model may use the token after reviewing the preview), or refuse. An unrecognised value is treated as refuse.
MCP_CONFIRM_ELICITATION No off never shows a confirmation prompt, so every client gets the MCP_CONFIRM_MODE token flow — for a client that claims to support prompts but never shows one (the write hangs — opencode 2.0.x). Defaults to on; any other value stays on, with a warning on stderr.
MCP_CONFIRM_TTL_SECONDS No How long a confirmation token stays valid. Defaults to 600.
MCP_CONFIRM_SECRET No Token signing key; set it only if tokens must survive a server restart. Defaults to random per process.
ARTSONIA_SESSION_FILE No Override the session cache path. Defaults to $MCP_DATA_DIR/.artsonia-mcp/session-<user>.json — one file per user, so per-credential clients do not clobber each other.