Bỏ qua tới nội dung

MCP-first API · lexihub v4.0.0

Kết nối Hub vào IDE và AI của bạn

LexiHub là một MCP server (Model Context Protocol) công khai, chỉ đọc. Kết nối một lần, sau đó AI trong Cursor, Claude, Windsurf hay Antigravity có thể tự tìm và lấy đúng Prompt, Skill, Bot hoặc Workflow khi bạn đang làm việc — không cần copy qua lại.

  • Endpoint: https://lexihub.tech/api/mcp
  • Giao thức: JSON-RPC 2.0 qua Streamable HTTP (POST), không trạng thái, không cần API key.
  • Phạm vi: toàn bộ Prompts, Skills, Bots (16 lõi + 301 chuyên gia) và Workflows.

Các tool

ToolArgumentsDescription
tvt_searchquery, tier?, limit?Fuzzy search across every prompt (incl. Deep Reasoning), agent skill, bot persona and workflow. Returns ids to pass to the tvt_get_* tools.
tvt_get_promptidReturns a prompt template (with {{VARIABLES}}) and its variable definitions. Works for Deep Reasoning prompts too.
tvt_get_skillidReturns the full SKILL.md (frontmatter, inputs, tools, step-by-step SOP) and its audit gates.
tvt_get_botidReturns a bot persona: system prompt (Claude / Cursor) and ChatGPT Custom Instructions.
tvt_list_workflowsid?Lists every multi-step workflow with its steps (agent, model, output format). Pass an id to get one workflow with its full prompt templates and data piping.

Cấu hình 1 chạm

Cursor

Tạo file .cursor/mcp.json trong dự án (hoặc ~/.cursor/mcp.json cho mọi dự án):

.cursor/mcp.json
{
  "mcpServers": {
    "lexihub": {
      "url": "https://lexihub.tech/api/mcp"
    }
  }
}

Claude Desktop

Cách nhanh nhất: Settings → Connectors → Add custom connector và dán URL endpoint. Nếu dùng file cấu hình, Claude Desktop chạy server qua cầu nối mcp-remote (cần Node.js):

claude_desktop_config.json
{
  "mcpServers": {
    "lexihub": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://lexihub.tech/api/mcp"
      ]
    }
  }
}

Claude Code

Terminal
claude mcp add --transport http lexihub https://lexihub.tech/api/mcp

Windsurf & Antigravity IDE

Mở phần quản lý MCP của IDE (Windsurf: ~/.codeium/windsurf/mcp_config.json; Antigravity: Manage MCP Servers → View raw config) và thêm server từ xa:

mcp_config.json
{
  "mcpServers": {
    "lexihub": {
      "serverUrl": "https://lexihub.tech/api/mcp"
    }
  }
}

Tên trường URL có thể khác giữa các phiên bản IDE (serverUrl hoặc url) — kiểm tra tài liệu MCP của IDE nếu server không xuất hiện.

Thử nhanh bằng curl

tools/list
curl -s https://lexihub.tech/api/mcp \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
tools/call → tvt_search
curl -s https://lexihub.tech/api/mcp \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"tvt_search","arguments":{"query":"meta ads","tier":"skill"}}}'

REST API tĩnh

Mọi dữ liệu cũng có sẵn dưới dạng file JSON / văn bản tĩnh, cache được qua CDN:

EndpointNội dungVí dụ
GET /data/items/{id}Prompt / Skill / Deep Reasoning đầy đủ (JSON)/data/items/b2b-cold-email-sequence
GET /data/bots/{id}System prompt + ChatGPT Custom Instructions của bot/data/bots/lexi
GET /data/bots-indexChỉ mục tìm kiếm 301 specialist/data/bots-index
GET /llms.txtMục lục Markdown cho AI crawler/llms.txt
GET /sitemap.xmlSitemap toàn bộ trang/sitemap.xml

Lưu ý: endpoint MCP cần server runtime (Vercel, next start, Docker). Bản export tĩnh (npm run build:static) vẫn có đầy đủ REST tĩnh nhưng không có /api/mcp.