Connect with Clients
ON THIS PAGE
OpenSolar MCP works with MCP-compatible hosts that support remote Streamable HTTP servers and OAuth. Use the same production URL in every client:
https://mcp.opensolar.com/mcp
No API keys belong in client config. Clients discover OAuth from the server and open a browser so you can sign in at OpenSolar.
Prerequisites
- MCP Access enabled for your organisation
- Your user has the MCP Access role permission
- Raw Data API Access enabled if you need API-backed tools
Gemini CLI
Gemini CLI reads MCP servers from settings.json. Use httpUrl for Streamable HTTP servers; OAuth is discovered automatically when the server returns 401.
- Add OpenSolar to
~/.gemini/settings.json(or your projectsettings.json):
{
"mcpServers": {
"opensolar": {
"httpUrl": "https://mcp.opensolar.com/mcp"
}
}
}
- Restart Gemini CLI, or run
/mcpto reload servers. On first connect Gemini CLI detects OAuth from server metadata, opens your browser, and stores tokens in~/.gemini/mcp-oauth-tokens.json. - Sign in in the browser when prompted.
- If authentication did not start automatically, run:
/mcp auth opensolar
Claude Code
Claude Code recommends HTTP transport for remote MCP servers. Add OpenSolar with claude mcp add or project .mcp.json, then authenticate from /mcp.
- Add the server from your terminal:
claude mcp add --transport http opensolar https://mcp.opensolar.com/mcp
- Or add equivalent JSON to
.mcp.jsonin your project (typeis required forurlentries):
{
"mcpServers": {
"opensolar": {
"type": "http",
"url": "https://mcp.opensolar.com/mcp"
}
}
}
- In a Claude Code session, run
/mcpand authenticateopensolar. Claude Code runs the OAuth flow for HTTP servers that return 401. Sign in at OpenSolar login when the browser opens.
Codex
Codex (ChatGPT desktop app, CLI, and IDE extension) share MCP servers in config.toml. OpenSolar uses Streamable HTTP with OAuth, so no API keys belong in the file.
- Add OpenSolar to
~/.codex/config.toml(global) or.codex/config.toml(trusted projects only):
[mcp_servers.opensolar]
url = "https://mcp.opensolar.com/mcp"
- Or add the server from your terminal:
codex mcp add opensolar --url https://mcp.opensolar.com/mcp
- Authenticate
opensolarwhen prompted (ChatGPT desktop or IDE: Settings → MCP servers → Authenticate). From the CLI, run the following if OAuth did not start automatically. Codex uses dynamic client registration and opens your browser to sign in at OpenSolar.
codex mcp login opensolar
- Type
/mcpin Codex to confirmopensolaris connected.
Cursor
Cursor supports remote MCP servers via mcp.json using a url field. OpenSolar uses OAuth (Streamable HTTP), so no API keys go in the file.
- Add OpenSolar to
~/.cursor/mcp.json(global) or.cursor/mcp.json(project):
{
"mcpServers": {
"opensolar": {
"url": "https://mcp.opensolar.com/mcp"
}
}
}
- Open Cursor → Customize → MCP and enable the
opensolarserver. Remote servers that require OAuth show an Authenticate action. Cursor completes dynamic client registration and opens your browser to sign in. - Complete sign-in in the browser when Cursor opens it, then return to Cursor.
- Approve MCP tool calls in chat when Cursor prompts you (or allowlist tools in Run Mode).
When prompted in any client, sign in with email/password, Google, or your organisation SSO. If you belong to more than one organisation, select the organisation for this grant. Choose scopes (READ, WRITE, DELETE) and approve.
Verify the connection
Ask the agent to run whoami. A successful call returns identity claims from your MCP token (organisation, scopes, client) without calling OpenSolar API and without consuming daily MCP tokens.
Then ask the agent what it can do. That confirms the connection, available tools, Raw Data API Access, and scopes.