Closedloop.ai
MCP Server

Connection and Integration Status

Check that the MCP connection works and whether GitHub, Linear, and Google are connected

Overview

These tools take no parameters. ping checks that your client can reach the server. The three status tools report whether your organization has connected GitHub, Linear, or Google. They only read status; connecting or disconnecting an integration is done in the Closedloop app.

ToolScopePurpose
pingnoneConnectivity check
get-github-statusreadGitHub integration status
get-linear-statusreadLinear integration status
get-google-statusreadGoogle integration status

ping is offered to every authenticated session, whatever its scopes. The status tools need read.

The status tools return JSON text. A failure comes back as a tool result with isError: true whose text carries a title, a description, any remediation steps, and the error code, message, and timestamp when the API supplied them.


Ping

Tool: ping Scope: none Underlying API: none. The MCP server answers without calling the API.

Returns

The text pong.

Example

ping()

Get GitHub Status

Tool: get-github-status Scope: read Underlying API: GET /integrations/github

Returns

The API's response, unshaped. When the GitHub App is installed, connected is true and installation describes it:

{
  "connected": true,
  "installation": {
    "id": "e3b0c442-98fc-4c14-9afb-f4c8996fb924",
    "installationId": "51234567",
    "accountLogin": "acme",
    "accountType": "Organization",
    "status": "ACTIVE",
    "repositorySelection": "selected",
    "repositoryCount": 12,
    "claimedAt": "2026-04-02T12:00:00.000Z",
    "createdAt": "2026-04-02T11:58:00.000Z"
  },
  "githubDataConnection": {
    "connected": true,
    "sources": ["github_app"],
    "oauthRequiredReasons": []
  }
}

When it is not, the response is connected: false with no installation.

  • installation.status is PENDING_CLAIM, ACTIVE, SUSPENDED, or UNINSTALLED.
  • githubDataConnection is optional. It reports whether GitHub data can be read at all, which can be true through a user's GitHub OAuth grant even without the App. sources lists github_app and/or user_oauth. oauthRequiredReasons lists why a GitHub sign-in may still be needed: no_app_installation, no_user_grant, credential_expired, credential_revoked, credential_insufficient_scope, or reconsent_required. When the field is absent, rely on connected.

Example

get-github-status()

Get Linear Status

Tool: get-linear-status Scope: read Underlying API: GET /integrations/linear

Returns

The API's response, unshaped:

{
  "connected": true,
  "organizationName": "Acme",
  "defaultTeamId": "lin_team_123",
  "teams": [{ "id": "lin_team_123", "name": "Platform", "key": "PLT" }]
}

Only connected is always present. organizationName, defaultTeamId, and teams are optional.

Example

get-linear-status()

Get Google Status

Tool: get-google-status Scope: read Underlying API: GET /integrations/google

Returns

{ "connected": true, "email": "dana@example.com" }

When Google is not connected, the response is { "connected": false, "email": null }. email can also be null when connected.

Example

get-google-status()

On this page