---
title: "Get server repository connection"
method: GET
path: "/servers/{namespace}/{server}/repo"
tags: ["servers"]
---

# Get server repository connection

`GET /servers/{namespace}/{server}/repo`

Get the GitHub repository connection for a server, if one exists.

## Path parameters

- `namespace` string, required
- `server` string, required

## Response `200`

Repository connection found

- object
  - `repoOwner` string, required
  - `repoName` string, required
  - `baseDirectory` string, required
  - `branch` string, nullable, required
  - `autoDeploy` boolean, nullable, required
  - `isPrivate` boolean, required
  - `type` 'github', required

## Other responses

- `403` — Forbidden
- `404` — Server not found or no repository connection

## Changes

- **2026-01-25** `ea538dc2369a` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/smithery-ai/apis/smithery-platform-api/changes/servers/:namespace/:server/repo/get.md)

---

[API](https://skmtc.dev/smithery-ai/apis/smithery-platform-api.md) · [All operations](https://skmtc.dev/smithery-ai/apis/smithery-platform-api/llms.txt) · [OpenAPI document](https://skmtc.dev/smithery-ai/apis/smithery-platform-api/revisions/9d53933ba12e?raw)
