qca-agent-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@qca-agent-mcpCheck the QCA backend status"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
QCA OpenCode Plugin
This package adds the QCA quantum-calibration toolset to an unmodified official OpenCode installation. It replaces the previous approach that patched and rebuilt OpenCode Desktop.
What it provides
Eight OpenCode tools: backend status, experiment discovery, schema lookup, parameter validation, dry-run, history lookup, array listing, and array read.
A standards-based MCP stdio server exposing the same eight QCA tools for other MCP-compatible agents.
A dependency-free Python QCA mini backend that the plugin starts and stops.
A remote mode for connecting the same tools to another QCA implementation that exposes the compatible HTTP contract.
Global and project-local installation scripts for Windows, macOS, and Linux.
The bundled backend is still a deterministic dry-run simulator. It does not connect to quantum hardware.
Related MCP server: affinity-mcp-proxy
Requirements
OpenCode 1.17.18 or later.
Python 3.10 or later available as
python3,python, or Windowspy -3.
No Docker, FastAPI, Uvicorn, or OpenCode source build is required.
Install
Windows
cd qca-opencode-plugin
powershell -ExecutionPolicy Bypass -File .\scripts\install.ps1For only the current project:
powershell -ExecutionPolicy Bypass -File .\scripts\install.ps1 -Scope ProjectmacOS or Linux
cd qca-opencode-plugin
chmod +x scripts/install.sh
./scripts/install.sh globalUse project instead of global to install into the current project's
.opencode directory.
Restart OpenCode after installation and ask:
Call qca_backend_status, then list all QCA experiments.Other Agents via MCP
The OpenCode plugin is still the best path for OpenCode itself. For other agents, use the MCP entry point:
bun ./mcp-server.tsMCP clients should configure this package as a stdio server. Use the absolute path on your machine:
{
"mcpServers": {
"qca": {
"command": "bun",
"args": [
"D:/StudyFiles/w/Intern/gitee-publish/qca-opencode-plugin/mcp-server.ts"
],
"env": {
"QCA_PYTHON": "python"
}
}
}
}After connecting, the client will see the same tools:
qca_backend_statusqca_list_experimentsqca_get_schemaqca_validate_paramsqca_run_dry_runqca_history_showqca_list_arraysqca_get_array
For production or a real lab backend, set QCA_BASE_URL and the MCP server
will call that external service instead of starting the bundled Python dry-run
backend:
{
"mcpServers": {
"qca": {
"command": "bun",
"args": [
"D:/StudyFiles/w/Intern/gitee-publish/qca-opencode-plugin/mcp-server.ts"
],
"env": {
"QCA_BASE_URL": "http://127.0.0.1:8000"
}
}
}
}Uninstall
Windows:
powershell -ExecutionPolicy Bypass -File .\scripts\uninstall.ps1macOS or Linux:
./scripts/uninstall.sh globalUse Project or project to remove a project-local installation. Experiment
history is intentionally left in the data directory, so uninstalling or
upgrading the plugin does not delete results.
Runtime modes
Managed local backend
This is the default. The plugin finds Python, starts the bundled server on
127.0.0.1 with a dynamic port, waits for /health, and terminates the child
process through the OpenCode plugin dispose() hook.
Data is stored outside the OpenCode installation:
Windows:
%LOCALAPPDATA%\qca-opencode-plugin\datamacOS:
~/Library/Application Support/qca-opencode-plugin/dataLinux:
${XDG_DATA_HOME:-~/.local/share}/qca-opencode-plugin/data
QCA_DATA_DIR overrides all defaults. XDG_DATA_HOME is also honored on every
platform. Set QCA_PYTHON to an absolute Python executable when automatic
discovery is not appropriate.
External QCA backend
Set QCA_BASE_URL before starting OpenCode:
QCA_BASE_URL=http://127.0.0.1:8000 opencodeIn this mode, the plugin does not start Python. This is the migration point for the real QCA backend, a remote lab service, or a containerized deployment.
Configured plugin options can also be used when the package is published:
{
"plugin": [
[
"@black-jony/qca-opencode-plugin",
{
"baseUrl": "http://127.0.0.1:8000"
}
]
]
}Test
bun install
bun test ./tests/plugin.test.ts ./tests/mcp.test.ts
python tests\test_backend.pyThe automated tests exercise all eight tools through both the OpenCode plugin entry point and the MCP stdio entry point, then repeat the backend contract against the installed directory layout.
Then run the OpenCode acceptance flow:
qca_backend_statusqca_list_experimentsqca_get_schemaforqubit_spectroscopyValidate
{"qubit":"Q0","center_freq":9.0}Dry-run
qubit_spectroscopyforQ0List arrays using the returned experiment ID
Read the
frequenciesarrayRead the complete history result
Security boundary
The plugin improves modularity, dependency isolation, and API capability boundaries. It is not an operating-system sandbox. The plugin and its Python child process run with the current user's permissions. For real hardware, authentication, explicit execution approval, audit logging, and a dedicated worker sandbox remain required.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Black-Jony/qca-agent-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server