/skills:install-grafana-mcp-for-nebiusfrom skills
Installs, configures, validates, or repairs the Grafana MCP server for Nebius-managed Grafana. Pins a human Nebius CLI profile and sets up a read-only MCP connection to grafana.nebius.dev.
Ships in skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
For $install-grafana-mcp-for-nebius --help or $install-grafana-mcp-for-nebius -h (including native Claude forms), return concise help and stop before
any workflow step. State the purpose and invocation policy. Show exact usage
for every public action. Describe each public action, positional
argument, and flag in one concise line, including -h, --help; say "No
additional public flags" when there are no others. Use only the documented
public interface. For internal or coordinator-only skills, state that boundary
and that no standalone public workflow action exists. After the selected
SKILL.md is loaded, help is report-only: do not call any additional tools,
inspect project state, or modify files, private state, Git, or external systems.
Never expose private helper actions or flags or treat help as workflow
authorization.
This skill configures Codex, regardless of which agent executes it. Keep its native configuration formats and product-specific commands.
Use $install-grafana-mcp-for-nebius in Codex, /install-grafana-mcp-for-nebius in Claude Code, or
/skills:install-grafana-mcp-for-nebius in the Claude plugin. Dollar-prefixed skill examples
refer to the same named skill on either host; use the native invocation syntax.
Preserve the declared invocation policy, approvals and workflow ownership.
Use available native tools; an unavailable required capability is a blocker,
never permission to bypass a guard or claim unobserved behavior.
Set up the official Grafana MCP server so Codex can access
https://grafana.nebius.dev/ through a validated read-only MCP connection
authenticated as one pinned human Nebius CLI user. Hand routine observability
queries to $nebius-grafana-query.
mcp-grafana is not enough for Codex to discover it. Codex needs
a configured [mcp_servers.*] entry or codex mcp add.GRAFANA_URL at a Nebius read endpoint. It must be the Grafana
base URL.mcp-grafana talks to Grafana. It can query PromQL-compatible monitoring
datasources, such as Prometheus or VictoriaMetrics, and Loki through Grafana
datasources, but it is not a Nebius public-read-endpoint client.nebius profile active, proves
nebius iam whoami --format json returns .user_profile.id, and stores a
private profile/user binding. Never use an ambient NEBIUS_PROFILE, agent
credential, project selector, or service-account profile.nebius iam get-access-token call. It writes a profile-scoped
GRAFANA_TOKEN_FILE, clears competing Nebius and Grafana authentication
variables, and never prints the token or user ID.GRAFANA_SERVICE_ACCOUNT_TOKEN_FILE support. Stdio retains the
startup client in source-verified v2.1.1; file replacement does not reload
that client. Setup retrieves a private startup token. Startup uses a one-hour
file-age cache heuristic, then retrieves missing/older state. Mtime does not
prove issuance or expiry, and retrieval may return the same token. Foreground
identity validation may open browser authentication within the 300-second
startup budget. A best-effort ten-hour timer retrieves noninteractively and
closes MCP with restart-required status 75, even for unchanged token bytes.
Neither the timer nor retrieval guarantees service through token expiry.
Update unsupported binaries; keep one canonical token-file path.0600 token file. Browser
authentication belongs to the pinned Nebius CLI profile. mcp-remote needs
an actual HTTP MCP endpoint with supported authorization; the Grafana web
URL is not such an endpoint. Do not add a gateway or Keychain dependency.GRAFANA_URL=https://grafana.nebius.dev/. Use the generic Grafana
service-account-token path for external Grafana instances so Nebius IAM tokens
cannot be sent to a non-Nebius Grafana URL.--disable-write, --max-loki-log-limit 20, and
proxied-tool availability. It accepts only that exact canonical flag pair
from a registration and rejects tool filters, transport weakening, and every
other caller-supplied argument.references/setup-guide.md when you need the detailed workflow,
endpoint table, command examples, or troubleshooting notes.~/.codex/config.toml,
creating the private identity binding, running Nebius IAM writes, issuing
static keys, or changing Grafana data sources.0600 token file. Use placeholders for tenant, project, and
resource IDs in repo files.env -u or unset operations into a parent inspection command or combine
them with direct Nebius CLI probes. PreToolUse is expected to deny that
parent command before execution; this is a command-shape coordination event,
not an installer or credential failure. Retry the helper directly, or run
nebius profile active separately without assigning or unsetting managed
authentication variables.command -v mcp-grafana before installing. Do not reinstall when the
binary is already present and responds to mcp-grafana --help.codex mcp list --json discovery before registering Codex
MCP config. Failed or malformed discovery is an error, not proof of absence.
Recheck absence immediately before adding a missing entry. Inspect existing
entries with codex mcp get <server-name> --json before creating private
identity state or refreshing a token; reject unapproved registration drift
without changing that state. If
the server exists and matches the desired wrapper-based command, read-only
args, and expected env keys, leave it in place. If it exists but points
at a trusted, executable, byte-identical source or installed copy of the
wrapper, treat it as matching state. Compare structured values, not masked display
placeholders. If it points somewhere else or any value differs, report the
mismatch and update only after the user confirms replacement. Accept only a
typed simple stdio shape and re-read it immediately before removal. Discard
its prior command, arguments, and environment instead of replaying legacy
values through process arguments. If the canonical add does not verify, do
not attempt rollback; inspect the named entry and rerun apply after correcting
the add failure. If post-write verification sees drift, leave the entry
intact for inspection; do not delete state that may have been replaced
concurrently.startup_timeout_sec = 300.0, no tool-timeout override, and no custom
working directory as part of the canonical registration. Use codex mcp
for registration fields. Because codex mcp add has no startup-timeout
option, the helper atomically inserts or updates only that one setting after
verifying the exact simple registration table. It digest-binds that
structured check to the inspected config.toml bytes, rechecks the bytes
immediately before replacement, preserves unrelated content, and fails on
unsafe files or any concurrent change it observes..zshrc or inherited
environment state for the selected identity.0700
directory. Bindings and tokens are regular, non-symlinked, user-owned
mode-0600 files; token refresh uses a bounded-wait owner lock tied to a PID
and process start time. Background refresh waits up to 90 seconds; foreground
startup waits up to 210 seconds so one bounded browser login can complete
within the 300-second MCP startup budget. Refresh recovers dead, PID-reused,
and incomplete locks and replaces the token atomically.owner-pid.tmp; preserve
populated or ambiguous provisional state for inspection.HOME to that
file to be user-owned, non-symlinked, and not group/world writable.--user-profile <human_profile> or
confirm the profile reported by nebius profile active. Do not ask for
TENANT_ID or PROJECT_ID; authorization comes from the pinned human.mcp-grafana is installed using the official binary path for macOS
or Linux. Prefer Homebrew only when Homebrew is already available; otherwise
use the official release binary or Go install path.scripts/ensure-local-config.sh --check --user-profile <profile> first;
use --apply only when the user wants local config changes. Invoke it as a
standalone command without outer managed-auth assignments or unsets. The
helper owns sanitizing inherited Nebius auth state for its child CLI calls,
checks local registration, private-state safety and binary support before
validating the human profile, creating the private binding and retrieving a token. Check mode stays noninteractive. Apply mode may open
browser authentication for the pinned human, retrieves the token only in
the private profile-scoped file, and never embeds the token in Codex
configuration.--apply --replace-existing only after the user explicitly reviews it.mcp-grafana read-only. Complete a browser login
if foreground renewal requests it. Do not assume Codex respawns a stopped
stdio server in the same chat after later background rotation; start a new
chat or restart Codex.
Validate locally with
mcp-grafana --help, codex mcp list, and
codex mcp get <server-name>.references/setup-guide.md; never echo raw CLI
stderr, browser authorization URLs, tokens or user IDs. Do not retain the
operational query workflow here. After the server is ready, route metrics,
logs, dashboards, and trace-tool questions to $nebius-grafana-query.Use this flow only when the user explicitly wants to connect an external
Grafana instance to Nebius public read endpoints. It is not needed for the
default https://grafana.nebius.dev/ MCP path.
TENANT_ID, PROJECT_ID, SA_NAME, and GROUP_NAME as inputs for
external Grafana Nebius IAM/static-key/data-source setup.GROUP_NAME to the tenant viewers group because Nebius
Observability docs require at least the tenant viewer role.viewers group is unavailable or the user wants a dedicated
group, create a custom group and access permit only after confirming the
desired scope. Tenant-scoped viewer access is the documented baseline for
Observability; narrower project-scoped groups must be verified with
Grafana "Save and test" before claiming they work.OBSERVABILITY static key only after the service account and
group membership are ready, then put that static key in the external Grafana
datasource HTTP header. Reuse an existing valid key from the user's secret
store when available; issue a new static key only for first setup or explicit
rotation. Do not pass the Nebius static key to mcp-grafana.This skill owns setup readiness, not user outcome queries. Once datasource
listing succeeds, tell the user to ask the observability question normally or
invoke $nebius-grafana-query. Do not keep a legacy query path in this
installer.
When using this skill, capture durable, reusable, public-safe learnings in the narrowest appropriate surface only when the task contract allows source edits. For read-only/report-only work, or when a learning is not public-safe, evidence-backed, in scope, or free of unverified/vendor-specific claims, do not edit skill sources; report that it was skipped. Do not capture secrets, private URLs, customer data, raw logs, or one-off local state.
Run safe static and local checks first:
mcp-grafana --help
install-grafana-mcp-for-nebius/scripts/ensure-local-config.sh \
--check --user-profile <human_profile>
install-grafana-mcp-for-nebius/scripts/test-run-nebius-grafana-mcp.sh
python3 -B install-grafana-mcp-for-nebius/scripts/test_grafana_skill_contract.py
python3 -B install-grafana-mcp-for-nebius/scripts/test_stdio_token_lifecycle.py
codex mcp list
codex mcp get <server-name>
The stdio lifecycle qualification needs an installed binary and uses only a
loopback Grafana fixture with dummy tokens. It performs no Nebius authentication.
Live setup validation should list Grafana datasources and stop. Run operational
PromQL, LogQL, dashboard, or trace-tool queries only through
$nebius-grafana-query with an explicitly safe target.
Report:
README.md (opens in a new tab)agents/openai.yaml (opens in a new tab)evals/evals.json (opens in a new tab)evals/process-cases.md (opens in a new tab)evals/trigger-prompts.csv (opens in a new tab)references/setup-guide.md (opens in a new tab)scripts/ensure-local-config.sh (opens in a new tab)scripts/run-nebius-grafana-mcp.sh (opens in a new tab)scripts/test-run-nebius-grafana-mcp.sh (opens in a new tab)scripts/test_grafana_skill_contract.py (opens in a new tab)scripts/test_stdio_token_lifecycle.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
75 skills in this plugin
/agent-nebius-auth-diagnoseRead-only diagnosis for current-session Nebius project discovery, agent authentication, quota reads, profiles, selectors, or auth-hook failures. Use when auth is missing/blocked; never mutate auth or IAM./agent-nebius-auth-setupUse only when explicitly invoked to bootstrap or repair current-project Codex Agent Nebius auth: account/tenant access, credentials/profile, repair lease, or separately requested auth hooks./ai-agent-designDesign provider-neutral production AI agent subsystems: behavior and topology, contracts, tools, context, memory, authority, durability, security, evals, and operations. Use ai-stack when AI technology selection remains, design/app-stack for whole products, and implementation skills for code.npx claudepluginhub nebius/nebius-ps-services --plugin skills