Saltar al contenido principal

GitHub

Tipo de conexióngithub

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

De un vistazo​

PropiedadValor
Class namegithub
ResourceConnectorClass (lumen.ai/v1alpha1); a workspace creates a Connector with classRef: {name: github}
Drivermcp
Providesmcp, github
Modepull (Lumen reaches out to the system)
Credential keystoken, privateKey (kept in a Secret, never in config)
Installation must providemcp
Regionseu

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​

PropiedadValor
Server addresshttps://api.githubcopilot.com/mcp/readonly
Sign-inbearer
Read onlyyes
Data locationUS
Vendor docshttps://github.com/github/github-mcp-server

Ajustes​

Se definen bajo config: en el Connector.

AjusteTipoValor por defectoDescripción
appIdstring-The number on the app's settings page, under About. Not the client ID.pattern `^[1-9][0-9]{0,15}$`
authobligatoriostring-How Lumen signs infixed to bearer
installationIdstring-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}$`
permissionslist 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
repositorieslist of string-Optional. Limits each token to these repositories (owner/name), all of one owner. Empty: every repository the installation reaches.maxItems 100
signInstring"token"Sign in withone of token, app
toolsmap of object-Tools agents may use
urlobligatoriostring-Server addressfixed to https://api.githubcopilot.com/mcp/readonly

El JSON Schema completo de estos ajustes: 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​

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