0.6.4 or later, Lightsage MCP 0.1.7 or later, and Agent
Tracker 0.1.14 or later when completing this migration.
Migration summary
Public API paths remain under
/v1, and the MCP path remains /mcp. The
rebrand does not change resource IDs, organization IDs, request bodies, or
response bodies by itself.
Use --lightsage-api-key-auth or LIGHTSAGE_API_KEY with the CLI,
and X-Lightsage-Api-Key with hosted MCP and direct public API requests.
Migrate the CLI
1
Install the Lightsage CLI
0.6.4 or later.2
Update commands and authentication
Replace the executable, auth flag, and environment variables in scripts:For generated CLI environment variables, use
CLI_LIGHTSAGE_API_KEY_AUTH.3
Verify the CLI
~/.config/lightsage. Re-run
lightsage auth login after installation to save your API key in the Lightsage
keychain entry.
Migrate MCP clients
Update each MCP client configuration:- Rename the local server entry from
sapienttolightsage. - Use
https://mcp.lightsage.com/mcpfor remote connections. - Set the API-key header to
X-Lightsage-Api-Key. - Use
@lightsage/mcpfor localnpxsetups.
@lightsage/mcp 0.1.7 or later so local and hosted clients use the
canonical Lightsage authentication contract.
If your client uses OAuth, disconnect the legacy connector and add Lightsage
with the new endpoint. This ensures the OAuth resource identifier matches the
canonical Lightsage MCP URL.
Migrate direct Public API integrations
Use the Lightsage base URL and API-key header. Keep the existing/v1 path and
API key value.
Migrate Agent Tracker
Install Agent Tracker0.1.14 or later before switching declarative browser
markup to data-lightsage-*.
1
Replace the npm package
2
Update framework imports
3
Redeploy and verify events
Rebuild and redeploy your application. Open Agent Analytics and confirm
that new visits arrive from the migrated deployment.
Migrate the Docs Agent
Replace Docs Agent commands in pull request templates, saved replies, and automation:/lightsage status and /lightsage help for the other commands. Legacy
/sapient commands remain available as a compatibility fallback.
Update saved links from /sapient-docs-agent/* to
/lightsage-docs-agent/*. The old documentation paths redirect permanently to
their Lightsage equivalents.
Final verification
lightsage versionreports0.6.4or later.lightsage status auth-status-get --no-interactiveauthenticates successfully.- MCP clients use
https://mcp.lightsage.com/mcpor@lightsage/mcp. - Direct API requests use
https://api.lightsage.comandX-Lightsage-Api-Key. - Application imports use
@lightsage/agent-tracker. - Docs Agent automation and saved replies use
/lightsagecommands. - New Agent Tracker visits appear in the Lightsage dashboard after deployment.