Mcp Sanity Images

C+ 77 completed
Api
cli / typescript · tiny
22
Files
1,366
LOC
0
Frameworks
4
Languages

Pipeline State

completed
Run ID
#370343
Phase
done
Progress
1%
Started
Finished
2026-04-13 01:31:02
LLM tokens
0

Pipeline Metadata

Stage
Cataloged
Decision
proceed
Novelty
40.89
Framework unique
Isolation
Last stage change
2026-05-10 03:35:10
Deduplication group #49374
Member of a group with 18 similar repo(s) — canonical #95301 view group →
Top concepts (2)
Project DescriptionWeb Backend
Same scanner, your repo: https://repobility.com — Repobility

AI Prompt

Create a command-line tool written in TypeScript that acts as a lightweight server for uploading local images to Sanity CMS. The tool should provide several functions: one to upload a single image, another to upload an image and patch it onto a document field, a batch upload function for an entire folder, and a utility to list image files in a directory. It must support PNG, JPG/JPEG, WebP, GIF, and SVG formats. The tool needs to read the `SANITY_PROJECT_ID` from environment variables and should be designed to be easily integrated into developer workflows, potentially using a CLI structure.
typescript cli sanity cms image-upload command-line asset-management
Generated by gemma4:latest

Catalog Information

A lightweight server that uploads local images to Sanity CMS, simplifying media ingestion for web projects.

Description

This tool provides a simple HTTP API that accepts image files from a local machine and forwards them to Sanity CMS. It validates file types and metadata using a schema library to ensure only supported images are uploaded. The server handles authentication with Sanity, manages upload sessions, and returns the resulting asset URLs. It is designed for developers who need a quick, repeatable way to ingest media into a Sanity-powered site. The project is written in TypeScript for type safety and ease of integration into existing Node.js workflows.

الوصف

يقدم هذا المشروع واجهة برمجة تطبيقات HTTP بسيطة تقبل ملفات الصور من جهاز محلي وتحوّلها إلى Sanity CMS. يستخدم مكتبة للتحقق من صحة أنواع الملفات والبيانات الوصفية لضمان رفع الصور المدعومة فقط. يدير الخادم عمليات المصادقة مع Sanity، ويعالج جلسات التحميل، ويعيد عناوين الموارد الناتجة. صُمم لتسهيل عملية إدخال الوسائط للمطورين الذين يحتاجون طريقة سريعة ومكررة لإدخال الصور في مواقع تعتمد على Sanity. يعتمد المشروع على TypeScript لتوفير أمان الأنواع وسهولة التكامل مع سير العمل في بيئة Node.js. يتيح للمستخدمين رفع الصور دون الحاجة إلى كتابة كود مخصص للتعامل مع واجهة Sanity. كما يدعم التحقق المسبق للبيانات لتقليل الأخطاء أثناء التحميل.

Novelty

5/10

Tags

image-upload sanity-cms-integration local-file-handling content-management media-pipeline validation

Technologies

zod

Claude Models

claude-opus-4.6

Quality Score

C+
77.0/100
Structure
84
Code Quality
97
Documentation
30
Testing
75
Practices
68
Security
100
Dependencies
60

Strengths

  • CI/CD pipeline configured (github_actions)
  • Good test coverage (43% test-to-source ratio)
  • Code linting configured (biome)
  • Consistent naming conventions (snake_case)
  • Low average code complexity \u2014 well-structured code
  • Good security practices \u2014 no major issues detected
  • Properly licensed project

Security & Health

4.6h
Tech Debt (D)
A
OWASP (100%)
PASS
Quality Gate
A
Risk (8)
Powered by Repobility — scan your code at https://repobility.com
MIT
License
6.2%
Duplication
Full Security Report AI Fix Prompts SARIF SBOM

Languages

typescript
69.7%
markdown
15.4%
json
8.8%
yaml
6.1%

Frameworks

None detected

Concepts (2)

Source: Repobility analyzer (https://repobility.com)
CategoryNameDescriptionConfidence
All rows scored by the Repobility analyzer (https://repobility.com)
auto_descriptionProject DescriptionMCP server for uploading local images to <a href="https://www.sanity.io/">Sanity CMS</a>. Lets AI assistants upload files from your filesystem directly into Sanity as image assets.80%
auto_categoryWeb Backendweb-backend70%

Quality Timeline

1 quality score recorded.

View File Metrics

Embed Badge

Add to your README:

![Quality](https://repos.aljefra.com/badge/94548.svg)
Quality BadgeSecurity Badge
Export Quality CSVDownload SBOMExport Findings CSV