Visão geral

List issues

MCPlist_issuesREAD$0.06 / call

List the GitHub issues on this project's repository — the work that is open on it, and what has been closed. Call this BEFORE create_issue: an issue that duplicates an open one is worse than no issue. Pull requests are never included. An empty list means the tracker is genuinely empty — never invent an issue number.

Arguments
workspace_idstringoptional

Workspace ID (optional when MCP endpoint is auto-scoped). Numeric workspace id — OR the project as the user names it: 'owner/repo', the repo name alone, the site's display name, its docs URL or custom domain. Text is resolved server-side; an ambiguous name returns the candidates instead of guessing, so pass what the user said rather than calling list_workspaces first.

statestringoptional

Which issues to return. Default 'open'. One of: open, closed, all.

labelsstring[]optional

Only issues carrying ALL of these labels, e.g. ['measure'].

limitnumberoptional

How many to return, 1-100. Default 30.

Call it#

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "list_issues",
    "arguments": {
      "state": "open"
    }
  }
}
curl -X POST 'https://docsbook.io/api/mcp/server' \
  -H 'Authorization: Bearer dbk_YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"list_issues","arguments":{"state":"open"}}}'

Updated

Esta página foi útil?