{
  "info": {
    "name": "Leiga — mcp.ai",
    "description": "REST API for the Leiga MCP. Set {{apiKey}} to a workspace key (sk_live_…) created at https://mcp.ai/settings/api-keys.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{apiKey}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.mcp.ai/api/leiga",
      "type": "string"
    },
    {
      "key": "apiKey",
      "value": "sk_live_...",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "leiga_create_project",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/create/project",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "create",
            "project"
          ]
        },
        "description": "Tool to create a new project in Leiga. Use after gathering project details and authenticating.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"name\": \"\",\n  \"contact\": \"\",\n  \"type_id\": 0,\n  \"end_time\": \"\",\n  \"start_time\": \"\",\n  \"description\": \"\",\n  \"contact_phone\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "leiga_get_file_list",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/file/list",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "file",
            "list"
          ]
        },
        "description": "Tool to retrieve a paginated list of files in a specified directory. Use after obtaining the directory ID to view files.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"pageNo\": 0,\n  \"keyword\": \"\",\n  \"fileType\": \"\",\n  \"pageSize\": 0,\n  \"catalogId\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "leiga_get_issue_detail_by_issue_number",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/issue/detail/by/issue/number",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "issue",
            "detail",
            "by",
            "issue",
            "number"
          ]
        },
        "description": "Tool to fetch detailed information about a specific issue using its issue number. Use when you have an issue number and need complete issue details.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"issueNumber\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "leiga_get_issue_schema",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/issue/schema",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "issue",
            "schema"
          ]
        },
        "description": "Tool to retrieve the issue custom-field schema. Use when you need the full list of field configurations after selecting an issue type.",
        "body": {
          "mode": "raw",
          "raw": "{}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "leiga_get_project_information",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/project/information",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "project",
            "information"
          ]
        },
        "description": "Tool to fetch detailed information about a specific project by its ID. Use when you need complete project metadata, including owner and members.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"projectId\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "leiga_get_project_overview_template",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/project/overview/template",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "project",
            "overview",
            "template"
          ]
        },
        "description": "Tool to retrieve the project overview template. Use when you need the structured overview template for a project after confirming its ID.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"projectId\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "leiga_get_project_template_list",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/project/template/list",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "project",
            "template",
            "list"
          ]
        },
        "description": "Tool to retrieve a list of project templates. Use when browsing available templates before creating a new project.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"name\": \"\",\n  \"pageNum\": 0,\n  \"pageSize\": 0\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "leiga_get_version_list",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/version/list",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "version",
            "list"
          ]
        },
        "description": "Tool to fetch list of versions for a specific platform. Use when you need to view all available versions before deployment.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"pageNo\": 0,\n  \"pageSize\": 0,\n  \"platform\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "leiga_get_webhook_type_list",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/webhook/type/list",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "webhook",
            "type",
            "list"
          ]
        },
        "description": "Tool to retrieve the list of available webhook types. Use when configuring webhooks and you need to know valid event types.",
        "body": {
          "mode": "raw",
          "raw": "{}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "leiga_list_projects",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/projects",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "projects"
          ]
        },
        "description": "Tool to list all projects available to the authenticated user. Use when you need to retrieve your projects in paginated form (e.g., page 1 with 10 per page).",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"pageNo\": 0,\n  \"pageSize\": 0\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    }
  ]
}