MCP server and CLI for the OpenViking control plane (topapi) collection management
Project description
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.
Project details
Release history Release notifications | RSS feed
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 mcp_server_openviking_controlplane-0.1.0.tar.gz.
File metadata
- Download URL: mcp_server_openviking_controlplane-0.1.0.tar.gz
- Upload date:
- Size: 82.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d3239fc90ba52646c5339ce9022520030a85c743cf02f6e79813b2454e6f988
|
|
| MD5 |
439620d1c3f5871d8502edf2da1cd47d
|
|
| BLAKE2b-256 |
a72040d02bf91125c20bb67254a52df3cd00c8d6a52b0e8c5466352cfaf9e17d
|
Provenance
The following attestation bundles were made for mcp_server_openviking_controlplane-0.1.0.tar.gz:
Publisher:
controlplane-mcp-release.yml on volcengine/OpenViking
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_server_openviking_controlplane-0.1.0.tar.gz -
Subject digest:
1d3239fc90ba52646c5339ce9022520030a85c743cf02f6e79813b2454e6f988 - Sigstore transparency entry: 2136702785
- Sigstore integration time:
-
Permalink:
volcengine/OpenViking@7b439b48c4719cfdb265c83df2452755a2b67aa1 -
Branch / Tag:
refs/heads/tmp/controlplane-mcp-release-run - Owner: https://github.com/volcengine
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
controlplane-mcp-release.yml@7b439b48c4719cfdb265c83df2452755a2b67aa1 -
Trigger Event:
push
-
Statement type:
File details
Details for the file mcp_server_openviking_controlplane-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mcp_server_openviking_controlplane-0.1.0-py3-none-any.whl
- Upload date:
- Size: 13.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6d32d0bde3b08853d5bc53752735044c81109dded3f2c9c350067479a0f1d17
|
|
| MD5 |
8731f94c756bd190be4988bd457f72d1
|
|
| BLAKE2b-256 |
37c9e176ba70eadc8715f98dabf6f750d76e60162e745dda98678cdf1bcde36f
|
Provenance
The following attestation bundles were made for mcp_server_openviking_controlplane-0.1.0-py3-none-any.whl:
Publisher:
controlplane-mcp-release.yml on volcengine/OpenViking
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_server_openviking_controlplane-0.1.0-py3-none-any.whl -
Subject digest:
a6d32d0bde3b08853d5bc53752735044c81109dded3f2c9c350067479a0f1d17 - Sigstore transparency entry: 2136702881
- Sigstore integration time:
-
Permalink:
volcengine/OpenViking@7b439b48c4719cfdb265c83df2452755a2b67aa1 -
Branch / Tag:
refs/heads/tmp/controlplane-mcp-release-run - Owner: https://github.com/volcengine
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
controlplane-mcp-release.yml@7b439b48c4719cfdb265c83df2452755a2b67aa1 -
Trigger Event:
push
-
Statement type: