OpenViking Control Plane — MCP Server + CLI
MCP server and CLI for the OpenViking control plane (topapi) — manage OV
libraries (Collection). Both front-ends share one core (client.py), so a tool
added once is available from MCP and the CLI alike.
Covers the 6 core control-plane Actions:
| Action | MCP tool | CLI command |
|---|---|---|
ListOpenVikingCollections |
list_collections |
ov-cp list |
CreateOpenVikingCollection |
create_collection ⚠️ |
ov-cp create |
GetOpenVikingCollection |
get_collection |
ov-cp get <rid> |
DeleteOpenVikingCollection |
delete_collection ⚠️ |
ov-cp delete <rid> |
GetOpenVikingUsage |
get_usage |
ov-cp usage <rid> |
GetOpenVikingCollectionUserAccess |
get_collection_api_key |
ov-cp api-key <rid> |
Endpoint
The control-plane TopAPI is compiled into the OpenViking data-plane cluster; each Action is served by the data-plane gateway at:
{endpoint}/api/openviking/{Action}
# default endpoint: https://api.vikingdb.cn-beijing.volces.com/openviking
# full URL e.g.: https://api.vikingdb.cn-beijing.volces.com/openviking/api/openviking/ListOpenVikingCollections
The Action lives in the path (no ?Action=&Version= query). The request body
is the Action's params (e.g. {"ResourceID": "..."}).
The default endpoint points at the reserved public data-plane gateway (not open to traffic yet). For local testing set
--endpoint/VIKING_ENDPOINTto akubectl port-forward, e.g.http://localhost:18080.
Authentication
The only method: an Ark AgentPlan ApiKey, sent as an Authorization: Bearer <key> header on every request (the backend's authorizeControlPlaneByArk reads
the key only from this header — it does not accept X-API-Key). Auth is
pluggable (common/auth.py → BearerTokenAuth); an AK/SK signer can be swapped in
later without touching the rest.
⚠️ Write actions like
createrequire the account to have AgentPlan deduction activated, otherwise they returnProductUnordered. Read-only actions (list/get/usage/delete) are not gated.
Configuration
| Setting | Env var | CLI flag | Default |
|---|---|---|---|
| Control-plane endpoint (base URL) | VIKING_ENDPOINT |
--endpoint / -e |
https://api.vikingdb.cn-beijing.volces.com/openviking |
| AgentPlan ApiKey | AGENTPLAN_API_KEY |
--api-key / -k |
— (required) |
| Default project | OPENVIKING_PROJECT |
--project |
default |
CLI usage
uv sync # or: pip install -e .
# set the key once via env, then drop the per-command flag
export AGENTPLAN_API_KEY=ark-xxxxxxxx
# read-only
uv run ov-cp list
uv run ov-cp get <ResourceID>
uv run ov-cp usage <ResourceID>
uv run ov-cp api-key <ResourceID>
# create (consumes paid quota; with source=agentplan only --name is needed —
# model names default, and the model ApiKey falls back to the configured key)
uv run ov-cp create --name my_kb
# delete (irreversible)
uv run ov-cp delete <ResourceID> --yes
Flags override env. The endpoint defaults to the public gateway; override it only
for testing (e.g. against a port-forward) with -e / VIKING_ENDPOINT —
uv run ov-cp -e http://localhost:18080 list.
ov-cp --help works without any config.
MCP usage (stdio / uvx)
The server defaults to stdio transport, so it can be launched as a subprocess by
any MCP client. Add to .mcp.json:
{
"mcpServers": {
"openviking-controlplane": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/volcengine/mcp-server#subdirectory=server/mcp_server_openviking_controlplane",
"mcp-server-openviking-controlplane"
],
"env": {
"AGENTPLAN_API_KEY": "ark-xxxxxxxx"
}
}
}
}
For local development point it at your checkout instead:
{
"mcpServers": {
"openviking-controlplane": {
"command": "uv",
"args": ["run", "--directory", "/abs/path/server/mcp_server_openviking_controlplane",
"mcp-server-openviking-controlplane"],
"env": {
"AGENTPLAN_API_KEY": "ark-xxxxxxxx"
}
}
}
}
Run with SSE instead via mcp-server-openviking-controlplane --transport sse.
Agent skill
A Claude Code / agent skill that documents the ov-cp workflow lives at
skills/openviking-controlplane/SKILL.md.
Symlink or copy it into your agent's skills directory (e.g. ~/.claude/skills/) to
let an agent drive the control plane.
⚠️
create_collection/delete_collectioncreate/destroy billable resources and are exposed as MCP tools; their descriptions instruct the model to confirm with you first. Rely on your client's tool-permission prompt as the final gate.
Release files for mcp-server-openviking-controlplane 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mcp_server_openviking_controlplane-0.1.0.tar.gz | 82.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mcp_server_openviking_controlplane-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 96.1 kB
Release files / mcp_server_openviking_controlplane-0.1.0.tar.gz
| Download URL | mcp_server_openviking_controlplane-0.1.0.tar.gz |
|---|---|
| Size | 82.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1d3239fc90ba52646c5339ce9022520030a85c743cf02f6e79813b2454e6f988
|
|
BLAKE2b-256 checksum How to use checksums |
a72040d02bf91125c20bb67254a52df3cd00c8d6a52b0e8c5466352cfaf9e17d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 10, 2026.
Transparency logRelease files / mcp_server_openviking_controlplane-0.1.0-py3-none-any.whl
| Download URL | mcp_server_openviking_controlplane-0.1.0-py3-none-any.whl |
|---|---|
| Size | 13.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a6d32d0bde3b08853d5bc53752735044c81109dded3f2c9c350067479a0f1d17
|
|
BLAKE2b-256 checksum How to use checksums |
37c9e176ba70eadc8715f98dabf6f750d76e60162e745dda98678cdf1bcde36f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 10, 2026.
Transparency log