Skip to main content

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 the organization: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:
Clients use different configuration formats and secret-storage mechanisms. If your client accepts an mcpServers configuration with url and headers, the shape is:
Replace the placeholder using your client’s protected credential mechanism. Do not commit a configuration containing a real key. Clients that support only local stdio processes cannot connect directly with this configuration.

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 read alignr://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

Set ALIGNR_MCP_TOKEN through your local secret-management environment, then add this entry to ~/.codex/config.toml:
Codex reads the token from that environment variable and sends it as a bearer token. See the Codex MCP configuration reference for current client settings.

Claude Code

Set ALIGNR_MCP_TOKEN in Claude Code’s environment and add this entry to a project .mcp.json or your user-level Claude Code MCP configuration:
Claude Code expands the variable in HTTP headers. See the Claude Code MCP configuration guide for configuration scopes and current client settings. These examples use user-owned bearer keys. They do not imply support for clients that require an OAuth authorisation flow. Alignr rechecks the key and its owner’s current permissions on each request, including requests made through an already connected client.

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.