qiskit_v2_api_reference_toc
Fetch the Qiskit v2 API reference table of contents in Markdown format to navigate documentation for quantum computing development.
Instructions
Fetch the Qiskit v2 (latest) API reference table of contents (https://docs.quantum.ibm.com/api/qiskit).
Returns:
str: The table of contents in Markdown format.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- jij_mcp/mcp_setting.py:149-160 (handler)The main handler function for the 'qiskit_v2_api_reference_toc' tool. It is registered via the @mcp.tool() decorator and fetches the Qiskit v2 API reference TOC from the specified URL using the fetch_as_markdown helper, returning it as a string or an error message.@mcp.tool() async def qiskit_v2_api_reference_toc() -> str: """ Fetch the Qiskit v2 (latest) API reference table of contents (https://docs.quantum.ibm.com/api/qiskit). Returns: str: The table of contents in Markdown format. """ url = "https://docs.quantum.ibm.com/api/qiskit" response: FetchResponse = await fetch_as_markdown(url) if response.isError: return response.errorMessage if response.errorMessage else "Error fetching the content" return url + "\n" + response.content[0]["text"]