diff --git a/static/api-specs/toolhive-crd-api.md b/static/api-specs/toolhive-crd-api.md index 1e83410f..1424ef5b 100644 --- a/static/api-specs/toolhive-crd-api.md +++ b/static/api-specs/toolhive-crd-api.md @@ -120,6 +120,26 @@ _Appears in:_ | `value` _string_ | Value of the environment variable | | Required: \{\}
| +#### GitSource + + + +GitSource defines Git repository source configuration + + + +_Appears in:_ +- [MCPRegistrySource](#mcpregistrysource) + +| Field | Description | Default | Validation | +| --- | --- | --- | --- | +| `repository` _string_ | Repository is the Git repository URL (HTTP/HTTPS/SSH) | | MinLength: 1
Pattern: `^(https?://\|git@\|ssh://\|git://).*`
Required: \{\}
| +| `branch` _string_ | Branch is the Git branch to use (mutually exclusive with Tag and Commit) | | MinLength: 1
| +| `tag` _string_ | Tag is the Git tag to use (mutually exclusive with Branch and Commit) | | MinLength: 1
| +| `commit` _string_ | Commit is the Git commit SHA to use (mutually exclusive with Branch and Tag) | | MinLength: 1
| +| `path` _string_ | Path is the path to the registry file within the repository | registry.json | Pattern: `^.*\.json$`
| + + #### InlineAuthzConfig @@ -260,9 +280,10 @@ _Appears in:_ | Field | Description | Default | Validation | | --- | --- | --- | --- | -| `type` _string_ | Type is the type of source (configmap) | configmap | Enum: [configmap]
| +| `type` _string_ | Type is the type of source (configmap, git) | configmap | Enum: [configmap git]
| | `format` _string_ | Format is the data format (toolhive, upstream) | toolhive | Enum: [toolhive upstream]
| | `configmap` _[ConfigMapSource](#configmapsource)_ | ConfigMap defines the ConfigMap source configuration
Only used when Type is "configmap" | | | +| `git` _[GitSource](#gitsource)_ | Git defines the Git repository source configuration
Only used when Type is "git" | | | #### MCPRegistrySpec