跳到正文

开发者与 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"