{"id":43737168,"url":"https://github.com/bobbylite/mcp-apps-color-picker","last_synced_at":"2026-02-05T11:06:03.839Z","repository":{"id":335430035,"uuid":"1145240164","full_name":"bobbylite/mcp-apps-color-picker","owner":"bobbylite","description":"Example for demonstrating how to use MCP Apps within Claude Desktop and other clients.","archived":false,"fork":false,"pushed_at":"2026-01-30T05:44:21.000Z","size":50,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-30T21:38:24.464Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bobbylite.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-29T15:38:30.000Z","updated_at":"2026-01-30T05:41:00.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/bobbylite/mcp-apps-color-picker","commit_stats":null,"previous_names":["bobbylite/mcp-apps-color-picker"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/bobbylite/mcp-apps-color-picker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bobbylite%2Fmcp-apps-color-picker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bobbylite%2Fmcp-apps-color-picker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bobbylite%2Fmcp-apps-color-picker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bobbylite%2Fmcp-apps-color-picker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bobbylite","download_url":"https://codeload.github.com/bobbylite/mcp-apps-color-picker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bobbylite%2Fmcp-apps-color-picker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29120483,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T10:47:47.471Z","status":"ssl_error","status_checked_at":"2026-02-05T10:45:08.119Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-02-05T11:06:03.170Z","updated_at":"2026-02-05T11:06:03.828Z","avatar_url":"https://github.com/bobbylite.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Color Picker MCP App\n\nAn interactive color picker extension for the Model Context Protocol (MCP) that renders a beautiful UI in Claude Desktop and other MCP-compatible hosts.\n\n## Features\n\n- Interactive color picker with live preview\n- Multiple color format support (HEX, RGB, HSL)\n- Click-to-copy color values\n- Random color generator\n- Beautiful gradient UI design\n- Seamless integration with Claude Desktop\n\n## Installation\n\n1. Install dependencies:\n   ```bash\n   npm install\n   ```\n\n2. Build the UI:\n   ```bash\n   npm run build\n   ```\n\n3. Start the server:\n   ```bash\n   npm run serve\n   ```\n\n   Or run both build and serve in one command:\n   ```bash\n   npm start\n   ```\n\nThe server will be available at `http://localhost:3001/mcp`.\n\n## Testing\n\n### Testing with Claude Desktop (Recommended)\n\nThe color picker is already configured in your Claude Desktop config at:\n`~/Library/Application Support/Claude/claude_desktop_config.json`\n\n1. **Restart Claude Desktop** to load the new server\n\n2. **Test the color picker**:\n   - Start a new chat in Claude Desktop\n   - Ask: \"Show me a color picker\" or \"I need to pick a color\"\n   - The interactive color picker will render in the chat\n   - Select colors, copy values, and send your selection back to Claude\n\n### Testing with Claude Web (via Custom Connector)\n\n1. **Start the HTTP server**:\n   ```bash\n   npm start\n   ```\n\n2. **Expose your local server to the internet** using `cloudflared`:\n   ```bash\n   npx cloudflared tunnel --url http://localhost:3001\n   ```\n\n3. **Copy the generated URL** (e.g., `https://random-name.trycloudflare.com`)\n\n4. **Add as a custom connector in Claude**:\n   - Go to claude.ai\n   - Click on your profile\n   - Go to **Settings** → **Connectors** → **Add custom connector**\n   - Paste your cloudflared URL\n   - Save the connector\n\n5. **Test the color picker** (same as Claude Desktop)\n\n### Testing with the basic-host\n\n1. Clone the ext-apps repository:\n   ```bash\n   git clone https://github.com/modelcontextprotocol/ext-apps.git\n   cd ext-apps/examples/basic-host\n   npm install\n   ```\n\n2. Start the basic-host with your color picker server:\n   ```bash\n   SERVERS='[\"http://localhost:3001\"]' npm start\n   ```\n\n3. Navigate to `http://localhost:8080` and test the color picker tool.\n\n## Usage\n\nOnce connected, you can ask Claude to use the color picker:\n\n- \"Show me a color picker\"\n- \"I need to pick a color for my website\"\n- \"Open the color picker tool\"\n- \"Help me choose a color starting with #FF5733\"\n\nThe color picker supports:\n- **Visual selection**: Click and drag on the color picker\n- **Manual input**: Type hex values directly\n- **Random colors**: Generate random colors with one click\n- **Multiple formats**: View and copy HEX, RGB, and HSL formats\n- **Context updates**: Send selected colors back to the conversation\n\n## Project Structure\n\n```\nmcp-apps-color-picker/\n├── package.json          # Dependencies and scripts\n├── tsconfig.json         # TypeScript configuration\n├── vite.config.ts        # Vite bundler configuration\n├── server.ts             # MCP server (HTTP) for web testing\n├── server-stdio.ts       # MCP server (stdio) for Claude Desktop\n├── mcp-app.html          # UI entry point\n├── src/\n│   └── mcp-app.ts        # UI logic and MCP App client\n└── dist/                 # Build output (generated)\n    └── mcp-app.html      # Bundled single-file HTML\n```\n\n### Server Files\n\n- **`server.ts`**: HTTP-based server for testing with Claude web (via cloudflared) or basic-host\n- **`server-stdio.ts`**: Stdio-based server for Claude Desktop integration\n\n## How It Works\n\n1. **Server Registration**: The server registers a `color-picker` tool with UI metadata pointing to a `ui://` resource\n2. **UI Resource**: When called, the server serves the bundled HTML containing the color picker interface\n3. **Sandboxed Rendering**: Claude renders the UI in a secure sandboxed iframe\n4. **Bidirectional Communication**: The app communicates with Claude through the MCP Apps protocol\n5. **Context Updates**: Selected colors are sent back to the conversation for use in subsequent interactions\n\n## Development\n\nTo modify the color picker:\n\n1. Edit `mcp-app.html` for UI structure and styling\n2. Edit `src/mcp-app.ts` for functionality and MCP communication\n3. Edit `server.ts` to change tool behavior or add new features\n4. Rebuild with `npm run build`\n5. Restart the server with `npm run serve`\n\n## Learn More\n\n- [MCP Apps Documentation](https://modelcontextprotocol.io/docs/extensions/apps)\n- [MCP Apps API Reference](https://modelcontextprotocol.github.io/ext-apps/api/)\n- [MCP Apps GitHub Repository](https://github.com/modelcontextprotocol/ext-apps)\n- [MCP Specification](https://github.com/modelcontextprotocol/specification)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbobbylite%2Fmcp-apps-color-picker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbobbylite%2Fmcp-apps-color-picker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbobbylite%2Fmcp-apps-color-picker/lists"}