Vectorize MCP Server

ทางการ

เซิร์ฟเวอร์ MCP ของ Vectorize สำหรับการดึงข้อมูลขั้นสูง การวิจัยเชิงลึกส่วนตัว การแยกไฟล์แบบ Anything-to-Markdown และการแบ่งข้อความเป็นส่วนย่อย

เอกสาร

Vectorize MCP Server

การใช้งานเซิร์ฟเวอร์ Model Context Protocol (MCP) ที่ผสานรวมกับ Vectorize สำหรับการค้นคืนเวกเตอร์และการสกัดข้อความขั้นสูง

Vectorize MCP server

การติดตั้ง

การรันด้วย npx

export VECTORIZE_ORG_ID=YOUR_ORG_ID
export VECTORIZE_TOKEN=YOUR_TOKEN
export VECTORIZE_PIPELINE_ID=YOUR_PIPELINE_ID

npx -y @vectorize-io/vectorize-mcp-server@latest

การติดตั้งใน VS Code

สำหรับการติดตั้งในคลิกเดียว ให้คลิกปุ่มติดตั้งด้านล่าง:

Install with NPX in VS Code Install with NPX in VS Code Insiders

การติดตั้งด้วยตนเอง

สำหรับการติดตั้งที่เร็วที่สุด ให้ใช้ปุ่มติดตั้งในคลิกเดียวที่ด้านบนของส่วนนี้

ในการติดตั้งด้วยตนเอง ให้เพิ่มบล็อก JSON ต่อไปนี้ลงในไฟล์การตั้งค่าผู้ใช้ (JSON) ใน VS Code คุณสามารถทำได้โดยกด Ctrl + Shift + P และพิมพ์ Preferences: Open User Settings (JSON)

{
  "mcp": {
    "inputs": [
      {
        "type": "promptString",
        "id": "org_id",
        "description": "Vectorize Organization ID"
      },
      {
        "type": "promptString",
        "id": "token",
        "description": "Vectorize Token",
        "password": true
      },
      {
        "type": "promptString",
        "id": "pipeline_id",
        "description": "Vectorize Pipeline ID"
      }
    ],
    "servers": {
      "vectorize": {
        "command": "npx",
        "args": ["-y", "@vectorize-io/vectorize-mcp-server@latest"],
        "env": {
          "VECTORIZE_ORG_ID": "${input:org_id}",
          "VECTORIZE_TOKEN": "${input:token}",
          "VECTORIZE_PIPELINE_ID": "${input:pipeline_id}"
        }
      }
    }
  }
}

หรือคุณสามารถเพิ่มสิ่งต่อไปนี้ลงในไฟล์ชื่อ .vscode/mcp.json ในพื้นที่ทำงานของคุณเพื่อแชร์การกำหนดค่ากับผู้อื่น:

{
  "inputs": [
    {
      "type": "promptString",
      "id": "org_id",
      "description": "Vectorize Organization ID"
    },
    {
      "type": "promptString",
      "id": "token",
      "description": "Vectorize Token",
      "password": true
    },
    {
      "type": "promptString",
      "id": "pipeline_id",
      "description": "Vectorize Pipeline ID"
    }
  ],
  "servers": {
    "vectorize": {
      "command": "npx",
      "args": ["-y", "@vectorize-io/vectorize-mcp-server@latest"],
      "env": {
        "VECTORIZE_ORG_ID": "${input:org_id}",
        "VECTORIZE_TOKEN": "${input:token}",
        "VECTORIZE_PIPELINE_ID": "${input:pipeline_id}"
      }
    }
  }
}

การกำหนดค่าบน Claude/Windsurf/Cursor/Cline

{
  "mcpServers": {
    "vectorize": {
      "command": "npx",
      "args": ["-y", "@vectorize-io/vectorize-mcp-server@latest"],
      "env": {
        "VECTORIZE_ORG_ID": "your-org-id",
        "VECTORIZE_TOKEN": "your-token",
        "VECTORIZE_PIPELINE_ID": "your-pipeline-id"
      }
    }
  }
}

เครื่องมือ

การค้นคืนเอกสาร

ทำการค้นหาเวกเตอร์และค้นคืนเอกสาร (ดู API อย่างเป็นทางการ):

{
  "name": "retrieve",
  "arguments": {
    "question": "Financial health of the company",
    "k": 5
  }
}

การสกัดข้อความและการแบ่งส่วน (ไฟล์ใดๆ เป็น Markdown)

สกัดข้อความจากเอกสารและแบ่งส่วนเป็นรูปแบบ Markdown (ดู API อย่างเป็นทางการ):

{
  "name": "extract",
  "arguments": {
    "base64document": "base64-encoded-document",
    "contentType": "application/pdf"
  }
}

การวิจัยเชิงลึก

สร้างการวิจัยเชิงลึกส่วนตัวจากไปป์ไลน์ของคุณ (ดู API อย่างเป็นทางการ):

{
  "name": "deep-research",
  "arguments": {
    "query": "Generate a financial status report about the company",
    "webSearch": true
  }
}

การพัฒนา

npm install
npm run dev

การเผยแพร่

เปลี่ยนเวอร์ชัน package.json จากนั้น:

git commit -am "x.y.z"
git tag x.y.z
git push origin
git push origin --tags

การมีส่วนร่วม

  1. Fork repository
  2. สร้าง branch ฟีเจอร์ของคุณ
  3. ส่ง pull request