Skip to main content
Glama

cognee-mcp

get_token.py634 B
import jwt import os import datetime SECRET_KEY = os.getenv("FASTAPI_USERS_JWT_SECRET", "super_secret") def create_jwt(user_id: str, tenant_id: str, roles: list[str]): payload = { "user_id": user_id, "tenant_id": tenant_id, "roles": roles, "exp": datetime.datetime.utcnow() + datetime.timedelta(hours=1), # 1 hour expiry } return jwt.encode(payload, SECRET_KEY, algorithm="HS256") if __name__ == "__main__": # Example token generation token = create_jwt( "6763554c-91bd-432c-aba8-d42cd72ed659", "4523544d-82bd-432c-aca7-d42cd72ed651", ["admin"] ) print(token)

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/topoteretes/cognee'

If you have feedback or need assistance with the MCP directory API, please join our Discord server