Before you begin
You need a client supporting remote Streamable HTTP servers and an Alignr API key. In the app, open MCP → + Generate token and create a user key with theorganization:read scope to test a read-only tool. Copy it when shown; Alignr does not display its value again. You can call list_organizations to find a client ID. An Organization represents one of your MSP’s clients.
1. Add the server
Use these values in your client’s remote MCP settings:mcpServers configuration with url and headers, the shape is:
2. Discover help and verify a read
Reconnect the server in your client. If it supports MCP resources, open its resource browser or ask it to list resources and readalignr://help/getting-started with resources/read. Read alignr://help/tools-and-scopes for the server’s registered tools, scopes and required owner permissions. A valid bearer key is required for both resources, but they need no extra tool scope. If your client does not expose resources, use this guide and the tool catalogue instead.
Inspect the discovered tools with tools/list, then ask the client to call get_organization with the ID of an Organization you can access. Confirm the returned client matches your intended target. Resource discovery and tool discovery do not authorise a tool call; its scope and the key owner’s current permissions are checked when it runs.
For the control-results example below, create a replacement key with compliance:read and compliance:explain. Keep organization:read if you also want to look up the client. Scopes are fixed when a key is created.
3. Ask about a control result
After connecting, begin with a bounded read request such as:For this Organization ID, retrieve its compliance results and explain one failing control. Include the control identifier and the evidence behind the explanation. Do not make changes.Grant only the scopes required by the tools involved. For this workflow, consult
get_organization_compliance and explain_control_status in the tool catalogue.
A useful answer identifies the client, the expectation, the actual observation and what remains unknown. If the answer says “MFA registered”, do not read that as “MFA enforced everywhere”. Use the predicate guide to check the claim.
Choose the tool for the question
Tool availability and permission checks remain server-side. A client’s ability to discover a tool is not permission to execute it.
For an assistant such as Claude Code or Codex, use
get_remediation_plan_outline to explain broad intent, then use the separate exact-plan preview and review-request workflow if the key and owner qualify. The outline gives no target, simulation mode or execution readiness and cannot be used as a request revision. request_remediation_review creates a pending run and approval; it does not approve or execute. Use list_remediation_runs or get_remediation_run_status to report lifecycle and separate verification state. A completed run does not prove the control is fixed. A named human reviews approval and any execution or rollback in the signed-in remediation workflow.
For client creation and updates, follow Manage clients with MCP and issue a separate user-owned key with the required write scope.
For a source refresh, use the recoverable evidence workflow. Keep its operation ID and caller-generated UUID after an uncertain response rather than asking the assistant to start another collection.
Codex
SetALIGNR_MCP_TOKEN through your local secret-management environment, then add this entry to ~/.codex/config.toml:
Claude Code
SetALIGNR_MCP_TOKEN in Claude Code’s environment and add this entry to a project .mcp.json or your user-level Claude Code MCP configuration:
Troubleshoot
- Unauthorised: check the bearer header, key expiry and revocation.
- Tool denied: check both the assigned scope and the key owner’s current permissions.
- Not found: confirm the endpoint, server availability and Organization ID.
- No tools: confirm Streamable HTTP support and that the server is enabled using the live reference.