spinqit_mcp_tools Installation Guide
This project is based on mcp-server to support efficient invocation of SpinQ quantum computing hardware resources by AI large models.
This project provides one-click installation scripts for spinqit_mcp_tools on Windows and macOS. These scripts automatically check the Python environment (Python 3.10 is recommended) and install the required spinqit_mcp_tools dependency package. If no suitable Python environment is found, the scripts will attempt to create one using Conda or guide users to manually install Python.
Table of Contents
Prerequisites
Before running the installation scripts, ensure the following requirements are met:
- Python 3.10 recommended: Use Python 3.10 for the current
spinqit_mcp_toolsenvironment. - Conda (optional): If Python 3.10 is not installed, the scripts can use Anaconda to create an environment. Download it from Anaconda.
- Internet connection: Required for downloading the
spinqit_mcp_toolspackage viapip. - macOS terminal permissions: Ensure the terminal supports
bash.
Script Installation Steps
Windows
-
Download the Script
-
Download the
mcpenv-installer-win-x86_64.batscript from the following link:
-
-
Run the Script
- Double-click
mcpenv-installer-win-x86_64.batto execute the installation.
- Double-click
-
Script Behavior
- If Python 3.10 is already installed: The script will directly install the
spinqit_mcp_toolspackage and output the Python environment path and themcp-serverexecution command. - If Python 3.10 is not installed but Conda is available: The script will create a Conda environment named
mcp-server-py310using Python 3.10, install the dependencies, and output the environment path and execution command. - If neither Python 3.10 nor Conda is installed: The script will prompt you to download and install Python 3.10 or Conda from Python's official website or Anaconda's official website. After installation, rerun the script.
- If Python 3.10 is already installed: The script will directly install the
-
Successful Installation
- Note the execution command, for example
C:\ProgramData\Anaconda3\envs\mcp-server-py310\python.exe -m spinqit_mcp_tools.qasm_submitter. - Register an account at SpinQ Cloud, configure your public key, and add
PRIVATEKEYPATH,SPINQCLOUDUSERNAME, andSPINQCLOUDHOSTto your MCP server settings. The default host ishttp://cloud.spinq.cn:6060, and other host addresses are also supported.
macOS
-
Download the Script
-
Download the
mcpenv-installer-mac.shscript from the following link:
-
-
Run the Script
-
Execute the script with:
sudo bash ./mcpenv-installer-mac.sh
-
-
Script Behavior
- Similar to the Windows script, the macOS script will:
- Check for Python 3.10. If found, it will install
spinqit_mcp_tools. - If Python 3.10 is not found, it will check for Conda and create a
mcp-server-py310environment. - If neither Python 3.10 nor Conda is installed, it will prompt you to install Python 3.10 or Conda and then rerun the script.
- Check for Python 3.10. If found, it will install
- Similar to the Windows script, the macOS script will:
Output Results
After successful execution, the script will output the following information:
- Python environment path: The path to the Python executable, e.g.:
- Windows:
C:\path\to\conda\envs\mcp-server-py310\python.exe - macOS:
/path/to/conda/envs/mcp-server-py310/bin/python
- Windows:
- mcp-server execution command: The command to run
mcp-server, e.g.:- Windows:
C:\path\to\conda\envs\mcp-server-py310\python.exe -m spinqit_mcp_tools.qasm_submitter - macOS:
/path/to/conda/envs/mcp-server-py310/bin/python -m spinqit_mcp_tools.qasm_submitter
- Windows:
Save this information for configuring and running spinqit_mcp_tools.
Troubleshooting
- Python not found or version below 3.10:
- Download and install Python 3.10 from Python's official website, ensuring it is added to PATH.
- Rerun the script after installation.
- Conda not recognized:
- Ensure Anaconda is installed and added to PATH if Python 3.10 is not present.
- pip installation failure:
- Check your internet connection.
- Conda environment creation failure:
- Verify Conda is properly installed or reinstall it from Anaconda's official website.
Usage
Use the Python installation directory to run:
/pathtopython/python -m spinqit_mcp_tools.qasm_submitter
Environment Testing
Create and submit a 2-qubit quantum circuit QASM to the cloud platform and view results.
-
Cursor
-
Configuration method
-
Results
-
Configuration settings
{ "mcpServers": { "qasm-submitter": { "type": "stdio", "command": "cmd", "args": [ "/C", "C:\\Users\\ylin\\.conda\\envs\\mcp-server-py310\\python.exe", "-m", "spinqit_mcp_tools.qasm_submitter" ], "env": { "PRIVATEKEYPATH": "<Your Privatekey Path>", "SPINQCLOUDUSERNAME": "<Your SpinQ Cloud Username>", "SPINQCLOUDHOST": "http://cloud.spinq.cn:6060" } } } }
-
-
VSCode Cline Plugin
-
Configuration settings:
{ "mcpServers": { "qasm-submitter": { "disabled": false, "timeout": 60, "transportType": "stdio", "command": "cmd", "args": [ "/C", "C:\\Users\\ylin\\.conda\\envs\\mcp-server-py310\\python.exe", "-m", "spinqit_mcp_tools.qasm_submitter" ], "env": { "PRIVATEKEYPATH": "<Your Privatekey Path>", "SPINQCLOUDUSERNAME": "<Your SpinQ Cloud Username>", "SPINQCLOUDHOST": "http://cloud.spinq.cn:6060" } } } }
-
Configuration method
-
Results
-
Manual Installation Steps
-
Install Python 3.10, then run:
pip install spinqit_mcp_tools
-
Configure
python -m spinqit_mcp_tools.qasm_submitteras the MCP client startup command. -
Set the required environment variables:
PRIVATEKEYPATH,SPINQCLOUDUSERNAME, andSPINQCLOUDHOST.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file spinqit_mcp_tools-0.0.2.tar.gz.
File metadata
- Download URL: spinqit_mcp_tools-0.0.2.tar.gz
- Upload date:
- Size: 860.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d180aba438c815817c23cda06e44e270ff90b13a0b39bdaf5291280ef01db35
|
|
| MD5 |
5c6f391d50c6d8796c9de0e036138ca6
|
|
| BLAKE2b-256 |
1c0284c03787a7542d9ac96844143914782b554d6ee6b1d66c846092cc09c635
|
File details
Details for the file spinqit_mcp_tools-0.0.2-py3-none-any.whl.
File metadata
- Download URL: spinqit_mcp_tools-0.0.2-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00f383da758de07a219e67b71388978e5310534a7d7c9fad9456d06afddee153
|
|
| MD5 |
d50afb36ba6e341b7d5929b53e8044f9
|
|
| BLAKE2b-256 |
27339b9520701ae14474f82b2724b9ccfe684410030184444a19d50978371ab5
|