Vectorize MCP Server

chính thức

Máy chủ MCP Vectorize cho truy xuất nâng cao, Nghiên cứu sâu riêng tư, trích xuất tệp Anything-to-Markdown và phân đoạn văn bản.

Tài liệu

Vectorize MCP Server

Một bản triển khai máy chủ Model Context Protocol (MCP) tích hợp với Vectorize để truy xuất Vector và trích xuất văn bản nâng cao.

Vectorize MCP server

Cài đặt

Chạy với 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

Cài đặt cho VS Code

Để cài đặt một lần nhấn, hãy nhấp vào một trong các nút cài đặt bên dưới:

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

Cài đặt thủ công

Để cài đặt nhanh nhất, hãy sử dụng các nút cài đặt một lần nhấn ở đầu phần này.

Để cài đặt thủ công, hãy thêm khối JSON sau vào tệp Cài đặt Người dùng (JSON) trong VS Code. Bạn có thể thực hiện bằng cách nhấn Ctrl + Shift + P và nhậ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}"
        }
      }
    }
  }
}

Tùy chọn, bạn có thể thêm nội dung sau vào tệp có tên .vscode/mcp.json trong không gian làm việc của mình để chia sẻ cấu hình với người khác:

{
  "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}"
      }
    }
  }
}

Cấu hình trên 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"
      }
    }
  }
}

Công cụ

Truy xuất tài liệu

Thực hiện tìm kiếm vector và truy xuất tài liệu (xem API chính thức):

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

Trích xuất văn bản và phân đoạn (Bất kỳ tệp nào sang Markdown)

Trích xuất văn bản từ tài liệu và phân đoạn thành định dạng Markdown (xem API chính thức):

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

Nghiên cứu chuyên sâu

Tạo Nghiên cứu chuyên sâu riêng tư từ pipeline của bạn (xem API chính thức):

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

Phát triển

npm install
npm run dev

Phát hành

Thay đổi phiên bản trong package.json rồi:

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

Đóng góp

  1. Fork kho lưu trữ
  2. Tạo nhánh tính năng của bạn
  3. Gửi pull request