mcpg-cloud MCP sunucusu
Commit 13 Kas 2026Manages mcpg.cloud gateways by publishing configurations, inspecting instances, following logs, and managing custom domains via a terminal client.
Ayrıca bilinen adı mcpg-dev/mcpg-cloud
- Yıldızlar
- 0
- Araçlar
- —
- İndirmeler, 30 gün
- —
- En son sürüm
- —
- Son commit
- 13 Kas 2026
- Lisans
- Apache-2.0
mcpg-cloud MCP nedir?
mcpg-cloud bir MCP sunucusudur. Manages mcpg.cloud gateways by publishing configurations, inspecting instances, following logs, and managing custom domains via a terminal client.
Özet, projenin README dosyasından oluşturuldu
mcpg-cloud MCP sunucusu hakkında
Managing managed MCP gateways through a terminal interface is what mcpg-cloud enables for developers using the mcpg.cloud service. This Rust-based client allows you to publish configuration files as running, addressable gateways and manage their lifecycle directly from your command line. It handles everything from initial provisioning to real-time monitoring and version control.
Users interact with the control plane via an HTTP API, signing in through an OIDC authorization-code flow with PKCE. Once authenticated, you can use commands like publish to deploy gateways with specific replica counts and size classes, or use logs to stream live output. The tool also manages custom domains by providing DNS TXT records for verification and allows for rolling back to previous configuration versions using the diff and rollback commands.
For automated workflows, the client can mint non-interactive service tokens for CI environments. It supports organizing deployments across different orgs, workspaces, and environments, which can be pinned for convenience. The client is installed via npm, pipx, cargo, or a shell script.
Neler yapabilirsiniz
- 1Deploying managed gatewaysPublish a local YAML configuration file as a running gateway instance with specific scaling parameters.
- 2Monitoring live gateway activityStream live logs from a specific gateway to observe its behavior in real time.
- 3Managing configuration historyCompare two different configuration versions or revert a gateway to a previous state.
- 4Automating deployments in CICreate machine credentials that allow continuous integration tools to interact with the service without human login.
- 5Configuring custom hostnamesVerify ownership of a domain to use it as a custom hostname for your gateway.
Projenin README dosyasından alınmıştır. Her kullanım durumu, oradaki bir alıntı ile kontrol edilir.
mcpg cloud — mcpg.cloud tenant CLI
mcpg-cloud is the terminal client for mcpg.cloud, the managed MCP Gateway
service. You hand it a gateway configuration file and it publishes that file as
a running, addressable gateway; from there it is how you inspect instances,
follow logs, diff and roll back config versions, prove ownership of a custom
domain, and mint machine credentials for CI. It talks only to the control plane's
HTTP API — it links no server code and can be installed on its own.
Rust · clap-parsed · OIDC PKCE sign-in · streaming publish
What it does
- Signs in with an OIDC authorization-code flow using PKCE (
login) and stores the resulting tokens in<state-dir>/credentials.json; every other command attaches them asAuthorization: Bearerautomatically. - Publishes a config file as a named managed gateway (
publish <NAME> --config gw.yaml) and streams the provisioning phase ladder as it happens. Re-publishing the same name updates that instance in place instead of creating a duplicate. - Records each publish as a numbered config version, so
versions,diff --from N --to M, androllback --to Nwork against real history. - Lists running gateways with their endpoint URLs and instance uids
(
instances), and recent provisioning operations for the org (operations). - Shows a gateway's recent logs as a tail snapshot, or streams them live with
logs <NAME> --follow. - Tears an instance down by published name or by instance uid — a UUID-shaped target is treated as a uid, anything else is resolved as a name.
- Claims and verifies custom domains:
domains addprints the DNS TXT record to create,domains verifychecks it and marks the domain verified. The control plane refuses to publish--custom-hostnamefor an unverified domain. - Mints, lists, and revokes org service tokens — non-interactive
mcpgst_…bearers for CI that are not tied to a human login. The secret is printed once, at creation, and never stored. - Reports which orgs the current login can act on (
whoami), and pins a default org, workspace, and environment so later commands take only their primary noun (use). - Resolves the org / workspace / environment coordinates a command needs from
flags, then environment variables, then the stored
usecontext, and fails with an error naming all three sources when none supplies a value.
Install / Run
mcpg-cloud ships with mcpg in the model-context-protocol-gateway
package:
npm install -g model-context-protocol-gateway # or: pipx install / cargo install model-context-protocol-gateway
curl -fsSL https://raw.githubusercontent.com/mcpg-dev/mcpg/main/install.sh | sh -s -- --bin mcpg-cloud # this tool alone
cargo build -p mcpg-cloud --release # from source → target/release/mcpg-cloud
mcpg dispatches bare-word subcommands to sibling binaries, so with
mcpg-cloud on PATH (or next to mcpg) every command is reachable as
mcpg cloud … as well as mcpg-cloud ….
mcpg cloud login --issuer https://auth.mcpg.dev
mcpg cloud use --org acme --workspace default --env prod
mcpg cloud publish edge --config gateway.yaml --replicas 2 --size m
mcpg cloud instances
mcpg cloud logs edge --follow
Configuration
There is no config file. The flags below have environment-variable forms; the
per-command deployment flags are argv-only. Every one of them is global except
--issuer, which belongs to login. The org, workspace, and environment
coordinates can be pinned once with mcpg cloud use, which writes
<state-dir>/context.json.
| Flag | Env var | Default | Description |
|---|---|---|---|
--cp-url |
MCPG_CP_URL |
http://127.0.0.1:7843 |
Control-plane HTTP base URL. --control-plane-url is an accepted alias. |
--org |
MCPG_ORG |
from use context |
Org slug. |
--workspace |
MCPG_WORKSPACE |
from use context |
Workspace. |
--env |
MCPG_ENV |
from use context |
Environment. |
--state-dir |
MCPG_STATE_DIR |
~/.mcpg (./mcpg-state when no home directory is detectable) |
Where credentials and the stored context live. |
--json-logs |
MCPG_JSON_LOGS |
off | Emit structured JSON logs instead of the human-readable format. |
--issuer |
MCPG_FED_ISSUER |
— | OIDC issuer for login. |
Precedence for the coordinates is flag, then environment variable, then the
stored context. RUST_LOG sets the tracing filter and defaults to info.
Against a loopback control plane running with authentication disabled, no login
is required and commands work with no stored credentials.
Publishing
mcpg cloud publish edge \
--config gateway.yaml \
--image-tag latest \
--replicas 2 \
--size m \
--region eu-west-1 \
--custom-hostname mcp.example.com
| Flag | Default | Description |
|---|---|---|
--config |
— | Path to the config file. Read verbatim and validated server-side. |
--image-tag |
latest |
Gateway image tag to run. |
--replicas |
1 |
Replica count. |
--size |
s |
Instance size class: s, m, l, or xl. |
--region |
platform default | Target region for the instance. |
--isolation-tier |
platform default | Requested isolation tier. |
--custom-hostname |
— | A hostname already verified through mcpg cloud domains. |
The size class is capped by the org's plan — community reaches s, pro m,
team l, and enterprise xl — and the control plane, not the CLI, enforces
that cap. rollback takes the same deployment flags as publish apart from
--custom-hostname, and they are not inherited from the version being restored,
so pass them explicitly when the instance deviates from the defaults.
Service tokens
mcpg cloud service-token create ci-deploy --role member --expires-days 90
mcpg cloud service-token list
mcpg cloud service-token revoke <ID>
Creating a token requires org ownership. --role is repeatable and defaults to
member; --expires-days defaults to 90, and 0 means the token never
expires. The secret is displayed once at creation — nothing stores it, so
list can only ever show ids and metadata.
Development
cargo build
cargo test
cargo clippy --all-targets
The full integration suite — it boots a real control plane and provisioner and drives the command helpers against the live HTTP API — runs upstream, where those services live.
Licence
Apache-2.0. See LICENSE.
See also
- https://mcpg.dev/docs/reference/cli/cloud — the full command reference
- https://mcpg.cloud/docs/publish-a-config — what a publish does end to end
- https://mcpg.cloud/docs/versions-and-rollback — config versions, diffs, rollbacks
- https://mcpg.cloud/docs/custom-domains — claiming and verifying a hostname
mcpg-cloud MCP soruları
How do I deploy a new gateway configuration?
You can publish a configuration file as a running gateway using the publish command with the --config flag.
Can I roll back to a previous configuration version?
Yes, the CLI records each publish as a numbered version, allowing you to use the rollback command to restore history.
How can I use this in a CI/CD pipeline without human interaction?
You can mint machine credentials known as service tokens which provide non-interactive access for CI environments.
How do I verify a custom domain?
Use the domains add command to get a DNS TXT record, then use domains verify to check and mark the domain as verified.