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
| Tool | Arguments | Description |
|---|---|---|
tvt_search | query, 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_prompt | id | Returns a prompt template (with {{VARIABLES}}) and its variable definitions. Works for Deep Reasoning prompts too. |
tvt_get_skill | id | Returns the full SKILL.md (frontmatter, inputs, tools, step-by-step SOP) and its audit gates. |
tvt_get_bot | id | Returns a bot persona: system prompt (Claude / Cursor) and ChatGPT Custom Instructions. |
tvt_list_workflows | id? | 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):
{
"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):
{
"mcpServers": {
"lexihub": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://lexihub.tech/api/mcp"
]
}
}
}Claude Code
claude mcp add --transport http lexihub https://lexihub.tech/api/mcpWindsurf & 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:
{
"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
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"}'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:
| Endpoint | Nội dung | Ví 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-index | Chỉ mục tìm kiếm 301 specialist | /data/bots-index |
GET /llms.txt | Mục lục Markdown cho AI crawler | /llms.txt |
GET /sitemap.xml | Sitemap 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.