# GitHub

> Let your AI agents read code, issues, pull requests and Actions runs, through GitHub's read-only MCP server.

Source: https://docs.go-lumen.ai/es/reference/connections/github

## De un vistazo

| Propiedad | Valor |
| --- | --- |
| **Class name** | `github` |
| **Resource** | ConnectorClass (`lumen.ai/v1alpha1`); a workspace creates a Connector with `classRef: {name: github}` |
| **Driver** | `mcp` |
| **Provides** | `mcp`, `github` |
| **Mode** | pull (Lumen reaches out to the system) |
| **Credential keys** | `token`, `privateKey` (kept in a Secret, never in config) |
| **Installation must provide** | `mcp` |
| **Regions** | eu |

A workspace adds this connection on the Connections page or with `lumen connect`; credentials are kept in a Secret, never in the flow.

## Entrada de la galería MCP

| Propiedad | Valor |
| --- | --- |
| **Server address** | `https://api.githubcopilot.com/mcp/readonly` |
| **Sign-in** | bearer |
| **Read only** | yes |
| **Data location** | US |
| **Vendor docs** | https://github.com/github/github-mcp-server |

## Ajustes

Se definen bajo `config:` en el Connector.

| Ajuste | Tipo | Valor por defecto | Descripción |
| --- | --- | --- | --- |
| `appId` | string |  | The number on the app's settings page, under About. Not the client ID. (pattern \`^\[1-9\]\[0-9\]{0,15}$\`) |
| `auth` (obligatorio) | string |  | How Lumen signs in (fixed to bearer) |
| `installationId` | string |  | The number at the end of the installation's settings address. Empty: Lumen finds the installation on the repositories' owner. (pattern \`^\[1-9\]\[0-9\]{0,15}$\`) |
| `permissions` | list of string |  | Optional. Limits each token to these permissions, such as contents:write or pull\_requests:write. Empty: everything the app was granted. (maxItems 30) |
| `repositories` | list of string |  | Optional. Limits each token to these repositories (owner/name), all of one owner. Empty: every repository the installation reaches. (maxItems 100) |
| `signIn` | string | `"token"` | Sign in with (one of token, app) |
| `tools` | map of object |  | Tools agents may use |
| `url` (obligatorio) | string |  | Server address (fixed to https://api.githubcopilot.com/mcp/readonly) |

El JSON Schema completo de estos ajustes: [github.schema.json](https://docs.go-lumen.ai/schemas/connections/github.schema.json).

## Configuración guiada

`lumen connect` y la aplicación web te guían para añadir esta conexión.

**Credenciales que se piden**

-   `privateKey`: Private key (.pem file)
-   `token`: Token

## Uso

```yaml title="connector.yaml"
apiVersion: lumen.ai/v1alpha1
kind: Connector
metadata:
  name: my-github
  namespace: tenant-acme
spec:
  classRef: {name: github}
  config: {}
```
