Opengist

Explore

  • All gists
  • Topics
  • Users
Give feedback on the new UI Powered by Opengist ⋅ 32ms

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Login

All gists

All Recently liked Recently forked
Recently created Least recently created Recently updated Least recently updated
fnt

fnt / gistfile1.txt

Last active 3 weeks ago
0 0 2
1 #!/usr/bin/env python3
2 """Bearer token for the Superset MCP server (https://superset.swiftdrive-tech.ru/mcp).
3
4 Keycloak realm `infra`, public client `superset-mcp`, Device Authorization Grant.
5 First run opens a browser login (realm 2FA applies); after that the cached
6 refresh token renews silently until the Keycloak session ends.
7
8 mcp-token.py print the access token
9 mcp-token.py --header print {"Authorization": "Bearer ..."} (Claude Code headersHelper)
10 mcp-token.py --logout drop the cached token