
moussaabbadla/code-screenshot-mcp
Browser automationこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
moussaabbadla/code-screenshot-mcp は [https://github.com/moussaabbadla/code-screenshot-mcp. からインポートされた MCP サーバーの候補です
概要
moussaabbadla/code-screenshot-mcp は [https://github.com/moussaabbadla/code-screenshot-mcp. からインポートされた MCP サーバーの候補です
概要(AI 翻訳)
Claudeから直接美しいコードスクリーンショットを生成するためのMCPサーバー
概要
Claude が、プロフェッショナルなテーマでシンタックスハイライトされたコードスクリーンショットを生成することを可能にするモデルコンテキストプロトコル(MCP)サーバー。 直接ファイル読み込み、ライン選択、git diff 可視化、バッチ処理をサポートします。
##特徴
-5プロフェッショナルテーマ:Dracula、Nord、Monokai、GitHub Light、GitHub Dark
- ファイル統合: 行範囲選択でファイルパスから直接スクリーンショットコード -Git Diff Support:段階的な変更またはステージ無しの変更を視覚化
- バッチ処理: 複数のファイルを同時に処理する
- 自動言語検出:20以上のプログラミング言語をサポート
- 否定的なクロードの統合: クロードデスクトップとクロードコードで動作します
インストール
前提条件
設定
クイックセットアップ(クロードコード):
手動セットアップ(デスクトップクロード):
[~/Library/Application Support/Claude/claude_desktop_config.json]でClaude設定ファイルに追加します。
設定後にClaudeデスクトップを再起動します。
###開発セットアップ
クイックスタート
##基本スクリーンショット
##ファイルから
特定のライン
###Git のディフ
バッチ処理
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
Code Screenshot Generator MCP
MCP server for generating beautiful code screenshots directly from Claude
Overview
A Model Context Protocol (MCP) server that enables Claude to generate syntax-highlighted code screenshots with professional themes. Supports direct file reading, line selection, git diff visualization, and batch processing.
Features
- 5 Professional Themes: Dracula, Nord, Monokai, GitHub Light, GitHub Dark
- File Integration: Screenshot code directly from file paths with line range selection
- Git Diff Support: Visualize staged or unstaged changes
- Batch Processing: Process multiple files simultaneously
- Auto Language Detection: Supports 20+ programming languages
- Native Claude Integration: Works with Claude Desktop and Claude Code
Installation
Prerequisites
npm install -g code-screenshot-mcp
Configuration
Quick Setup (Claude Code):
claude mcp add code-screenshot-mcp
Manual Setup (Claude Desktop):
Add to your Claude configuration file at ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"code-screenshot": {
"command": "code-screenshot-mcp"
}
}
}
Restart Claude Desktop after configuration.
Development Setup
git clone https://github.com/MoussaabBadla/code-screenshot-mcp.git
cd code-screenshot-mcp
npm install
npm run build
Quick Start
Basic Screenshot
"Generate a code screenshot of this TypeScript function with Nord theme:
function fibonacci(n: number): number {
if (n <= 1) return n;
return fibonacci(n-1) + fibonacci(n-2);
}
"
From File
"Screenshot src/index.ts with Dracula theme"
Specific Lines
"Screenshot lines 20-45 of src/generator.ts with Monokai theme"
Git Diff
"Screenshot my git diff with GitHub Dark theme"
Batch Processing
"Screenshot src/index.ts, src/generator.ts, and src/templates.ts"
Available Themes
dracula- Dark purple theme (default)nord- Arctic blue-tinted thememonokai- Classic dark themegithub-light- Clean light themegithub-dark- GitHub’s dark theme
API Reference
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →設定
{
"mcpServers": {
"code-screenshot": {
"command": "code-screenshot-mcp"
}
}
}