跳到主要內容

開發者與 AI 接入

Tintdex 提供公開免費的 MCP 服務、Agent Skill 與 HTTP API,無需登入或配置密鑰,即可在 AI 編程助手或腳本中搜尋配色、調整 OKLCH 色值並產生各終端機設定檔。

MCP

採用遠端 Streamable HTTP 協議,無狀態且免鑒權。將下方設定片段新增至對應客戶端即可使用。

服務地址: https://tintdex.afengim.com/mcp

建議做法:複製提示詞發給目前使用的 AI 助手。助手會先檢查是否具備本機設定檔的寫入權限,可寫入時自動完成配置,不可寫入時列出對應的手動操作步驟

手動配置

Claude Code

claude mcp add --transport http --scope user tintdex https://tintdex.afengim.com/mcp

Cursor · ~/.cursor/mcp.json

{
  "mcpServers": {
    "tintdex": {
      "url": "https://tintdex.afengim.com/mcp"
    }
  }
}

VS Code · ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "tintdex": {
      "type": "http",
      "url": "https://tintdex.afengim.com/mcp"
    }
  }
}

Codex · CLI

codex mcp add tintdex --url https://tintdex.afengim.com/mcp

Codex · ~/.codex/config.toml

[mcp_servers.tintdex]
url = "https://tintdex.afengim.com/mcp"

Skill

提供標準的 SKILL.md 技能檔案,兼容 Claude Code、Codex、Cursor、GitHub Copilot、Kiro 等支援 Agent Skills 的客戶端。下載後儲存至 skills 目錄下的 tintdex/SKILL.md 即可。

建議做法:複製提示詞發給目前使用的 AI 助手。助手會先檢查是否具備本機設定檔的寫入權限,可寫入時自動完成配置,不可寫入時列出對應的手動操作步驟

下載 SKILL.md

HTTP API

遵循 OpenAPI 3.1 規範的公開 JSON 介面。可透過 locale 參數指定配色摘要與安裝說明的返回語言(預設為英語)。

OpenAPI 文件

方法路徑
GET/api/v1/schemesSearch color schemes
GET/api/v1/schemes/{slug}Get a scheme
GET/api/v1/schemes/{slug}/configs/{format}Render a config file
GET/api/v1/schemes/{slug}/configs/{format}/promptSetup prompt for a terminal or editor
POST/api/v1/palettes/adjustAdjust a palette in OKLCH
GET/api/v1/formatsList export formats
GET/api/v1/categoriesList categories
GET/api/v1/familiesList families
GET/api/v1/terminalsList terminals

curl

curl -sS "https://tintdex.afengim.com/api/v1/schemes?q=dracula"