prasanthmj_primitive-go-mcp-server
Mirror of https://github.com/prasanthmj/primitive-go-mcp-server
GitHubスター
0
ユーザー評価
未評価
お気に入り
0
閲覧数
3
フォーク
1
イシュー
0
README
MCP Image Generation Server
A Go implementation of an MCP (Model Context Protocol) server that generates images using OpenAI's DALL-E API. This server demonstrates how to build MCP tools that can be used by Large Language Models like Claude.
Features
- Generate images from text descriptions
- Automatic handling of save locations
- Configurable image dimensions
- Proper error handling and logging
- Works with Claude Desktop and other MCP clients
Prerequisites
- Go 1.19 or higher
- OpenAI API key
- Claude Desktop (for testing)
Build command
go build -o ./bin/imagegen-go ./main
Configuration
Add this server to your Claude Desktop configuration at ~/Library/Application Support/Claude/claude_desktop_config.json
:
{
"mcpServers": {
"imagegen-go": {
"command": "/path/to/imagegen-go/bin/imagegen-go",
"env": {
"OPENAI_API_KEY": "your-api-key",
"DEFAULT_DOWNLOAD_PATH":"/path/to/downloads"
}
}
}
}
Usage
- Build the server using the command above
- Configure Claude Desktop with your server path and API key
- Restart Claude Desktop
- Ask Claude to generate images!
Example prompt:
"Can you generate an image of a riverside home in cinematic style?"
Implementation Details
This server implements the MCP tools capability and provides a single tool:
generate-image
: Generates an image from a text prompt using OpenAI's DALL-E
License
MIT License
作者情報
52
フォロワー
3,824
リポジトリ
0
Gist
0
貢献数
関連するMCP
Mirror of https://github.com/AndrewDonelson/go-mcp-server-service