Qiskit Code Assistant MCP Server

v0.4.0
io.github.Qiskit/qiskit-code-assistant-mcp-server Checked 17 hours ago Published 7 months ago

MCP server for the Qiskit Code Assistant intelligent code completion

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

accept_model_disclaimer_tool

Accept the legal disclaimer for a Qiskit Code Assistant model. Call this when prompted with a disclaimer requirement before using completions. The model_id and disclaimer_id are provided in the disclaimer prompt. Args: model_id: The model ID (e.g., 'mistral-small-3.2-24b-qiskit') disclaimer_id: The disclaimer ID from the disclaimer prompt Returns: Dict with 'status' ('success' or 'error') and 'result' or 'message'.

ParameterTypeDescription
disclaimer_id *string
model_id *string

get_completion_tool

Generate Qiskit Python code based on a natural language prompt. Use this tool when users want to CREATE CODE for quantum circuits, algorithms, or any Qiskit programming task. The tool returns ready-to-use Python code. When to use this tool: - "Write a Bell state circuit" - "Create a 3-qubit GHZ state" - "Generate VQE code for H2 molecule" - "Make a quantum random number generator" For conceptual questions (what/why/how explanations), use get_rag_completion_tool instead. Args: prompt: Natural language description of the code to generate. Be specific about circuit size, gates…

ParameterTypeDescription
prompt *string

get_rag_completion_tool

Answer questions about Qiskit and quantum computing concepts using RAG. Use this tool when users ask CONCEPTUAL QUESTIONS that need explanations, not code. The tool retrieves relevant information from IBM's knowledge base. When to use this tool: - "What is quantum entanglement?" - "How does the Qiskit transpiler work?" - "Explain the difference between Sampler and Estimator" - "What are the best practices for error mitigation?" For code generation requests, use get_completion_tool instead. Args: prompt: A question about quantum computing or Qiskit concepts. Returns: Dict with:…

ParameterTypeDescription
prompt *string

accept_completion_tool

Mark a generated completion as accepted/useful for feedback tracking. Call this after successfully using code or answers from get_completion_tool or get_rag_completion_tool. This helps improve the Qiskit Code Assistant. Args: completion_id: The completion_id from a previous completion response Returns: Dict with 'status' ('success' or 'error') and 'result' or 'message'.

ParameterTypeDescription
completion_id *string