MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / get_token_status

Method get_token_status

env_manager.py:123–130  ·  view source on GitHub ↗

Checks if the token exists and returns a preview.

(self)

Source from the content-addressed store, hash-verified

121 return {"success": False, "message": f"✗ Failed to save token to .env file: {e}"}
122
123 def get_token_status(self):
124 """
125 Checks if the token exists and returns a preview.
126 """
127 token = self.get_token()
128 if token:
129 return {"token_set": True, "preview": f"{token[:5]}...{token[-4:]}"}
130 return {"token_set": False}
131
132def load_env(project_root=None):
133 """

Callers

nothing calls this directly

Calls 1

get_tokenMethod · 0.95

Tested by

no test coverage detected