mcptoken

command
v0.2.0-dev.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2026 License: AGPL-3.0 Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command mcptoken mints an API token for MCP on a test panel and prints the `claude mcp add` line that connects a coding agent to it, so an agent can drive a real throwaway panel over MCP (scripts/e2e/mcp-token.sh is the wrapper; scripts/e2e-wsl.sh --hold is the panel).

Making a token is the owner's act: it needs the owner's session and a step-up (a fresh authenticator code). The owner session cookie and the authenticator secret of the TEST panel come from the environment, never from flags (which a process list shows):

MG_ADMIN_URL      the admin URL with a trailing slash, e.g. http://localhost:8081/
MG_OWNER_COOKIE   the value of the __Host-sid cookie of the owner's session
MG_TOTP_SECRET    the base32 secret of the owner's authenticator

The token secret is printed once, in the output line only. It lives as long as -ttl-days (default 1) and has the profile of -profile (readonly, operator or admin; default operator: reads, tests and day-to-day changes, no owner approvals). Never point this at a production panel.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL