MCP server that wraps the installed uPic.app (macOS) so AI agents can upload images and get back stable CDN URLs.
Server has 5 tools with clear verb-noun naming (upload_image, list_hosts, get_default_host, uploader_info). Descriptions are present and moderately detailed (100-250 chars), explaining what each tool does and when to use it. Input schemas are visible with type declarations. However, parameter descriptions lack depth, many are single-clause statements without format guidance, constraints, or examples of valid values. Output schemas are not formally documented in the code; return types are inferred from docstrings. Error handling is minimal, no recovery guidance or categorization. The staging/sandbox logic is sophisticated but not exposed to the LLM as actionable constraints.
Show the currently selected default host in uPic. Returns a dict with ``id``, ``name``, and ``type``, or ``null`` if no default is set.
List all image hosts configured in uPic. Returns a list of dicts with ``id``, ``name``, and ``type`` (e.g. ``S3``, ``Aliyun``, ``Imgur``). Secrets are not included.
Upload a local image/file via uPic and return the CDN URL. Args: path: Absolute path to a file on disk. Paths outside uPic's sandbox whitelist (e.g. /tmp/*) are auto-copied to ~/.upic-staging/ first. Returns a dict with ``url``, ``size_bytes``, ``host``, ``compress_factor`` (<100 means uPic's built-in JPG/PNG compression kicked in), and ``staged_from`` if the file had to be copied.
Upload raw base64-encoded image bytes via uPic. Useful for uploading screenshots or generated images you have in memory without writing them to disk first. The data is decoded to a temp file in ``~/.upic-staging/`` and then uploaded normally.
Return runtime info about the uPic installation. Includes the binary path, compression factor (100 = off), and the currently selected default host.
Output schemas not formally documented. Return types (url, size_bytes, host, compress_factor, staged_from) are described in docstrings but not in structured JSON Schema. LLMs cannot reliably extract fields or plan downstream calls without explicit schema definitions.
Parameter descriptions are minimal and lack format/constraint guidance. 'path' is described as 'Absolute path to a file on disk' but does not specify: max length, allowed characters, whether symlinks are followed, or what happens if the file is unreadable. 'data' (base64) lacks encoding validation hints.
No error handling guidance. Tools do not document what errors are possible (file not found, upload timeout, invalid credentials, network failure) or how the LLM should recover. A timeout or permission error returns raw stderr with no actionable next step.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 57 | 2026-07-28+ | v2 |
Staging behavior is opaque to the LLM. The tool auto-copies files outside the sandbox whitelist to ~/.upic-staging/, but the description does not explain this or warn that the LLM may not have write access to that directory. The 'staged_from' field in the response is undocumented.
No confirmation or dry-run for destructive operations. upload_image and upload_image_from_base64 modify state (create files in staging, upload to CDN) but lack a dry-run or confirmation step. An agent mistake could upload sensitive images.