ai.smithery/keremurat-jsonmcp

Registre officiel E-commerce

Compare two JSON files deeply, ignoring order, to surface every difference. Get a clear, structure…

Installation

Ajoutez ceci à la configuration MCP de votre client (Claude Desktop : claude_desktop_config.json ; Cursor : .cursor/mcp.json ; VS Code et les autres utilisent la même forme « mcpServers »).

Remote (streamable-http)
Claude Code
claude mcp add --transport http keremurat-jsonmcp 'https://server.smithery.ai/@keremurat/jsonmcp/mcp' --header 'Authorization: <Bearer token for Smithery authentication>'
Configuration JSON (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "keremurat-jsonmcp": {
            "type": "http",
            "url": "https://server.smithery.ai/@keremurat/jsonmcp/mcp",
            "headers": {
                "Authorization": "<Bearer token for Smithery authentication>"
            }
        }
    }
}

Documentation

Tirée du README du projet sur GitHub, actualisée chaque semaine. Les liens ouvrent GitHub.

Sommaire
  1. 🔍 JSON Compare MCP Server
  2. ✨ Özellikler
  3. 🎯 Hızlı Başlangıç
  4. 📦 Ne İçeriyor?
  5. 🚀 Kullanım
  6. 🔍 Karşılaştırma Mantığı
  7. 🧪 Test
  8. 🛠️ Geliştirme
  9. 🚀 Deployment
  10. 📋 Gereksinimler
  11. 🤝 Katkıda Bulunma
  12. 📄 Lisans

🔍 JSON Compare MCP Server

Derinlemesine ve sıra-bağımsız JSON karşılaştırma MCP tool'u

İki JSON dosyasını akıllıca karşılaştırın, farklılıkları tespit edin!

🎯 Hızlı Başlangıç • 📦 Özellikler • 🚀 Kullanım • 🧪 Test


✨ Özellikler

  • 🔍 Derinlemesine Karşılaştırma - Nested objeler ve array'ler dahil tüm seviyeler
  • 🔀 Sıra-Bağımsız - Property ve obje sıralaması önemli değil
  • 📊 Detaylı Raporlama - Eksik, fazla ve farklı değerlerin detaylı raporu
  • 🎯 Path Tracking - Her farkın tam konumu (örn: root.user.settings.theme)
  • 🏷️ Tip Kontrolü - Değer tiplerini de karşılaştırır
  • ⚡ Hızlı ve Verimli - Optimize edilmiş recursive algoritma

🎯 Hızlı Başlangıç

1. Kurulum
git clone https://github.com/yourusername/json-compare-mcp.git
cd json-compare-mcp
pip install -r requirements.txt
2. MCP Server'ı Başlat
python server.py
3. Test Et
python test_compare.py

📦 Ne İçeriyor?

json-compare-mcp/
├── 🐍 app.py              # JSON karşılaştırma implementasyonu
├── 🚀 server.py           # MCP server yapılandırması
├── 🧪 test_compare.py     # Test suite
├── 📋 requirements.txt    # Python bağımlılıkları
├── 🐳 Dockerfile          # Container yapılandırması
├── ⚙️ smithery.yaml       # Smithery deployment config
└── 📁 test_samples/       # Örnek JSON dosyaları
    ├── file1.json
    ├── file2.json
    └── file3_different.json

🚀 Kullanım

MCP Tool: compare_json
# İki JSON string'ini karşılaştır
compare_json(
    json1='{"name": "Ahmet", "age": 30, "city": "Istanbul"}',
    json2='{"age": 30, "city": "Istanbul", "name": "Ahmet"}'
)

Not: Artık dosya yolu değil, direkt JSON string kullanın!

Çıktı Formatı
{
  "status": "different",
  "total_differences": 11,
  "differences": [
    {
      "type": "missing_key",
      "path": "root.user.settings.language",
      "key": "language",
      "file1_value": "tr",
      "message": "Key 'language' exists in file1 but missing in file2"
    },
    {
      "type": "value_mismatch",
      "path": "root.user.name",
      "file1_value": "Ahmet Yılmaz",
      "file2_value": "Mehmet Demir",
      "message": "Value mismatch at 'root.user.name'"
    }
  ],
  "summary": {
    "missing_keys": 1,
    "extra_keys": 2,
    "value_mismatches": 8,
    "type_mismatches": 0
  }
}

🔍 Karşılaştırma Mantığı

Seviye 1: Üst Seviye Obje Karşılaştırma
  • ✅ Her iki JSON'daki üst seviye objeleri/anahtarları tespit et
  • ✅ SIRALAMA ÖNEMLİ DEĞİL - Objeler farklı sırada olabilir
  • ✅ Eksik/fazla objeleri tespit et ve uyar
  • ✅ Eşleşen objeler için Seviye 2'ye geç
Seviye 2: İç Nesne/Property Karşılaştırma
  • ✅ Tüm property'leri karşılaştır
  • ✅ SIRALAMA ÖNEMLİ DEĞİL - Property'ler farklı sırada olabilir
  • ✅ Property varlığı, tip ve içerik kontrolü
  • ✅ Array'ler için sıra-bağımsız karşılaştırma
Fark Tipleri
TipAçıklama
missing_keyAnahtar file1'de var, file2'de yok
extra_keyAnahtar file2'de var, file1'de yok
value_mismatchDeğerler farklı
type_mismatchVeri tipleri farklı

🧪 Test

Test Suite'i Çalıştır
python test_compare.py
Test Senaryoları
  1. Sıra-bağımsız test: Aynı içerik, farklı sıralama → identical
  2. Farklılık tespiti: Farklı değerler → detaylı fark raporu
  3. Kendisi ile: Aynı dosya → identical
Test Çıktısı
✅ Test 1 - Sıra-bağımsız: BAŞARILI
✅ Test 2 - Farklılık tespiti: BAŞARILI
✅ Test 3 - Aynı dosya: BAŞARILI

🔍 Test 2 Detayları:
   - Eksik anahtarlar: 1
   - Fazla anahtarlar: 2
   - Değer uyuşmazlıkları: 8
   - Tip uyuşmazlıkları: 0
   - Toplam fark: 11

🛠️ Geliştirme

Yeni Tool Eklemek

app.py dosyasına yeni fonksiyon ekle:

def myNewTool(param: str) -> str:
    # Your logic
    return result

server.py dosyasına MCP tool olarak kaydet:

@mcp.tool()
async def my_new_tool(param: str) -> str:
    """Tool açıklaması"""
    return myNewTool(param)

🚀 Deployment

Smithery Deployment
  1. Repository'yi GitHub'a push et
  2. Smithery'de repository'yi bağla
  3. Tek tıkla deploy et! 🎉
Docker Deployment
docker build -t json-compare-mcp .
docker run -p 8000:8000 json-compare-mcp
Manuel Deployment
pip install -r requirements.txt
python server.py

📋 Gereksinimler

  • Python 3.11+
  • mcp
  • requests

🤝 Katkıda Bulunma

  1. 🍴 Fork et
  2. 🌱 Feature branch oluştur
  3. 💻 Değişiklikleri yap
  4. 🧪 Test et
  5. 📝 Pull request gönder

📄 Lisans

MIT License - Detaylar için LICENSE dosyasına bakın.


Made with ❤️ for better JSON comparison

Sıra-bağımsız, derinlemesine, güvenilir 🚀

Questions fréquentes

Qu'est-ce que ai.smithery/keremurat-jsonmcp ?

Compare two JSON files deeply, ignoring order, to surface every difference. Get a clear, structure…

Comment installer ai.smithery/keremurat-jsonmcp ?

Il fonctionne comme serveur distant. Dans Claude Code : claude mcp add --transport http keremurat-jsonmcp 'https://server.smithery.ai/@keremurat/jsonmcp/mcp' --header 'Authorization: <Bearer token for Smithery authentication>'. Pour les autres clients, collez la configuration JSON de cette page dans leurs réglages MCP.

Faut-il une clé API pour ai.smithery/keremurat-jsonmcp ?

Oui. Il attend Authorization, à renseigner dans sa configuration.

ai.smithery/keremurat-jsonmcp est-il open source ?

Oui. Son code est sur GitHub sous licence MIT.

Qui maintient ai.smithery/keremurat-jsonmcp ?

Il est publié par keremurat. AI.tn le référence sans le maintenir ni le recommander.

Issu du registre MCP officiel. Être listé n'est pas une recommandation : vérifiez le code et les permissions d'un serveur avant de lui donner accès à vos données.