io.github.OguntolaIbrahim/image-viewer

السجل الرسمي الوسائط والتصميم

InChat Image Viewer MCP - View images inline in AI chat by just providing the file path

ماذا يمكنك أن تفعل مع io.github.OguntolaIbrahim/image-viewer؟

  • 📸 Path-to-image: Type the path, AI sees the image
  • 🖼️ Multi-format: PNG, JPEG, GIF, BMP, WebP
  • ⚡ Zero-config: npx inchat-image-viewer-mcp just works
  • 🔌 Works with: VS Code Copilot Chat, Claude Desktop

التثبيت

أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: ‏.cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).

NPM package inchat-image-viewer-mcp
Claude Code
claude mcp add image-viewer -- npx -y inchat-image-viewer-mcp@1.0.1
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "image-viewer": {
            "command": "npx",
            "args": [
                "-y",
                "inchat-image-viewer-mcp@1.0.1"
            ]
        }
    }
}

التوثيق

مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.

المحتويات
  1. InChat Image Viewer MCP
  2. Why This Exists
  3. How It Works: Before vs After
  4. Features
  5. Quick Start
  6. Usage Examples
  7. Supported Formats
  8. License

InChat Image Viewer MCP

The Problem: GitHub Copilot Chat can't see images from file paths—only drag-and-drop works, breaking your workflow.

The Solution: Give AI the file path in plain text, and it sees the image instantly using this MCP.

Why This Exists

What DOESN'T Work in VS Code Copilot Chat

❌ Plain file paths → AI can't see them

Show me C:\screenshots\bug.png

Result: AI sees text, not the image

❌ #file: references → Unreliable for images

#file:screenshot.png

Result: Empty <attachments> - AI sees nothing

✅ Drag-and-drop → Works, but manual and disruptive Result: AI sees image as base64 attachment, but you have to manually drag every single image

What This MCP Solves

✅ Plain file paths with MCP → AI sees images instantly

#image-viewer Show me C:\screenshots\bug.png

Result: AI calls view_image tool and displays the image inline—no manual steps


How It Works: Before vs After

WITHOUT InChat Image Viewer MCP

You: "Analyze C:\test-results\failure-screenshot.png"

AI receives:

<attachments></attachments>  

Just sees the text path—no image data.

What you have to do: Stop, drag the file into chat, drop it, then ask again.


WITH InChat Image Viewer MCP

You: "#image-viewer Analyze C:\test-results\failure-screenshot.png"

AI receives:

{
  "content": [
    {
      "type": "text",
      "text": "Image: failure-screenshot.png (124,433 bytes)"
    },
    {
      "type": "image",
      "data": "iVBORw0KGgoAAAANSUhEUgAAB4AAAAQ4CAIAAABnsVYU...",
      "mimeType": "image/png"
    }
  ]
}

AI sees the full image inline automatically.

What you do: Nothing extra—just type naturally with #image-viewer.


Features

  • 📸 Path-to-image: Type the path, AI sees the image
  • 🖼️ Multi-format: PNG, JPEG, GIF, BMP, WebP
  • ⚡ Zero-config: npx inchat-image-viewer-mcp just works
  • 🔌 Works with: VS Code Copilot Chat, Claude Desktop

Quick Start

1. Install (Optional)
npm install -g inchat-image-viewer-mcp
# or use npx (no install needed)
2. Add to Your AI Tool

VS Code Copilot Chat – mcp.json:

{
  "servers": {
    "image-viewer": {
      "command": "npx",
      "args": ["inchat-image-viewer-mcp"]
    }
  }
}

Claude Desktop – Config file (%APPDATA%\Claude\claude_desktop_config.json on Windows):

{
  "mcpServers": {
    "image-viewer": {
      "command": "npx",
      "args": ["inchat-image-viewer-mcp"]
    }
  }
}
3. Restart

Reload VS Code or restart Claude Desktop to load the MCP server.


Usage Examples

#image-viewer What's in C:\Users\me\screenshot.png?
#image-viewer Compare before.jpg and after.jpg in the results folder
#image-viewer Debug this error screenshot: D:\projects\test-failures\2026-01-20.png

The AI automatically uses the view_image tool—no manual attachment needed.


Supported Formats

PNG · JPEG · GIF · BMP · WebP


License

MIT

Made with 🤖 by Ibrahim Oguntola


الأسئلة الشائعة

ما هو io.github.OguntolaIbrahim/image-viewer؟

InChat Image Viewer MCP - View images inline in AI chat by just providing the file path

كيف أثبّت io.github.OguntolaIbrahim/image-viewer؟

يعمل على جهازك. في Claude Code: claude mcp add image-viewer -- npx -y inchat-image-viewer-mcp@1.0.1. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.

هل يحتاج io.github.OguntolaIbrahim/image-viewer إلى مفتاح API؟

لا يذكر إدراجه في السجل أي مفتاح أو سر إلزامي. قد تتطلب بعض الميزات حسابًا لدى الخدمة التي يتصل بها.

هل io.github.OguntolaIbrahim/image-viewer مفتوح المصدر؟

شيفرته علنية على GitHub، لكن المستودع لا يعلن ترخيصًا قياسيًا.

من يصون io.github.OguntolaIbrahim/image-viewer؟

ينشره OguntolaIbrahim. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.

من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.