Connect Cline to StackJack
Cline is a VS Code extension (with a companion CLI) that connects to remote MCP servers over Streamable HTTP (MCP is the Model Context Protocol, the open standard AI tools use to call external tools). It supports two ways to authenticate — either is fine.
Prerequisites
- The Cline extension installed in VS Code (a recent build if you want the sign-in option).
- For Option A: a StackJack account that is a member of your workspace.
- For Option B: an MCP client credential created by an owner, co-owner, or Administrator (see Managing MCP credentials).
- Your StackJack MCP endpoint URL:
https://mcp.stackjack.io/mcp.
Option A: Sign in with StackJack
- In the Cline panel, open MCP Servers → Remote Servers.
- Enter a name (for example "stackjack") and the URL
https://mcp.stackjack.io/mcp, with transport Streamable HTTP. - Click Add Server, then Authenticate to sign in via your browser — use the same email, password, and MFA you use for the StackJack Portal.
Caveat: Cline's OAuth sign-in exists in recent builds but is not yet officially documented, and re-authentication after a token expires can be unreliable. If sign-in stops working, fall back to Option B.
Option B: Manual credentials
Create an MCP client in the portal and base64-encode
CLIENT_ID:CLIENT_SECRET:- macOS/Linux:
echo -n "CLIENT_ID:CLIENT_SECRET" | base64 - PowerShell:
[Convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes("CLIENT_ID:CLIENT_SECRET"))
- macOS/Linux:
Open MCP Servers → Configure MCP Servers (this edits
cline_mcp_settings.json) and paste:{ "mcpServers": { "stackjack": { "disabled": false, "timeout": 60, "type": "streamableHttp", "url": "https://mcp.stackjack.io/mcp", "headers": { "Authorization": "Basic <BASE64_OF_CLIENT_ID:CLIENT_SECRET>" } } } }
If you use the Cline CLI, its MCP configuration lives at ~/.cline/mcp.json — the same server entry shape applies there.
Tool limits
Cline does not publish a hard MCP tool cap, but StackJack can expose hundreds of tools depending on your connectors and plan. When using manual credentials, pick a client with a restricted tool selection so Cline only sees what it needs, or switch StackJack to compact catalog mode so it serves a small tool list and Cline discovers the rest on demand. An admin must first enable catalog modes for your organization on Endpoints; until then StackJack serves the full tool list. See Choosing tools for each client and managing harness tool limits.
Troubleshooting
- Re-authentication fails after the token expires — a known rough edge in Cline's OAuth support; switch to Option B.
- Sign-in says no account was found — sign up in the portal first, or ask your team admin for an invite.
- For anything else, see Connection troubleshooting.