set-active-tenant
(CLI only) Select the tenant codemode operates against. Pass tenantUrl: null to clear.
How to use it
set-active-tenant is exposed by the Mc8yp MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the set-active-tenant tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Mc8yp
claude mcp add mc8yp -- pnpm dlx mc8ypOther tools in Mc8yp (2)
Run an async JavaScript function in a sandbox with discovery (codemode.search/describe), documentation (docs.search/read), and typed API namespaces (c8y, per-service globals) available. Returns the function result in Toon format.
(CLI only) Show the active tenant, stored credentials, and the API namespaces currently visible. Auto-clears the active tenant if its credentials are gone. Pass refresh: true to bust the 30-minute discovery cache and re-run discovery for the active tenant — useful right after (un)subscribing a micro