Use this approach when mcp-remote is not available — for example in headless environments, CI pipelines, or custom agent frameworks.
Fetch a Token
Code
This requires TESSER_API_KEY and TESSER_API_SECRET set in your environment or .env file.
IDE Configuration
Configure your IDE with a static token. This works with any IDE that supports MCP URL-type servers:
Code
Set MCP_TOKEN in your shell before launching the IDE.
Token Helper Script
The Tesser repo includes a helper script that reads credentials from .env and outputs a fresh token:
Code
Token Expiry
Tokens expire after approximately 24 hours. When a token expires, MCP tool calls will fail with a 401 error. You will need to re-run the token fetch command and restart your IDE session.
For automatic token refresh, use mcp-remote instead.
Last modified on