Skip to content

Commit 3617ac1

Browse files
authored
Merge pull request #680 from docker/add-instructions
Add optional description field to configuration
2 parents 9c29ad6 + cd116f7 commit 3617ac1

File tree

11 files changed

+24
-13
lines changed

11 files changed

+24
-13
lines changed

pkg/catalog/tile.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,11 @@ func ToTile(ctx context.Context, server servers.Server) (Tile, error) {
7575
}
7676

7777
secrets = append(secrets, Secret{
78-
Name: s.Name,
79-
Env: s.Env,
80-
Example: s.Example,
81-
Required: required,
78+
Name: s.Name,
79+
Env: s.Env,
80+
Example: s.Example,
81+
Description: s.Description,
82+
Required: required,
8283
})
8384
}
8485

pkg/catalog/types.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,11 @@ type Config struct {
188188
}
189189

190190
type Secret struct {
191-
Name string `json:"name" yaml:"name"`
192-
Env string `json:"env" yaml:"env"`
193-
Example string `json:"example" yaml:"example"`
194-
Required bool `json:"required,omitempty" yaml:"required,omitempty"`
191+
Name string `json:"name" yaml:"name"`
192+
Env string `json:"env" yaml:"env"`
193+
Example string `json:"example" yaml:"example"`
194+
Description string `json:"description,omitempty" yaml:"description,omitempty"`
195+
Required bool `json:"required,omitempty" yaml:"required,omitempty"`
195196
}
196197

197198
type Env struct {

pkg/servers/types.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,11 @@ type Server struct {
5050
}
5151

5252
type Secret struct {
53-
Name string `yaml:"name" json:"name"`
54-
Env string `yaml:"env" json:"env"`
55-
Example string `yaml:"example,omitempty" json:"example,omitempty"`
56-
Required *bool `yaml:"required,omitempty" json:"required,omitempty"`
53+
Name string `yaml:"name" json:"name"`
54+
Env string `yaml:"env" json:"env"`
55+
Example string `yaml:"example,omitempty" json:"example,omitempty"`
56+
Description string `yaml:"description,omitempty" json:"description,omitempty"`
57+
Required *bool `yaml:"required,omitempty" json:"required,omitempty"`
5758
}
5859

5960
// secret is an alias used to drop encoding methods to avoid infinite recursion.

servers/brave/server.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ config:
1919
- name: brave.api_key
2020
env: BRAVE_API_KEY
2121
example: YOUR_API_KEY_HERE
22+
description: See [Getting an API key](https://github.com/brave/brave-search-mcp-server?tab=readme-ov-file#getting-an-api-key)
2223
env:
2324
- name: BRAVE_MCP_TRANSPORT
2425
example: "stdio"

servers/dockerhub/server.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ config:
2323
- name: dockerhub.pat_token
2424
env: HUB_PAT_TOKEN
2525
example: your_hub_pat_token
26+
description: Instructions for creating a personal access token can be found [in the Docker Docs](https://docs.docker.com/security/access-tokens/)
2627
parameters:
2728
type: object
2829
properties:

servers/firecrawl/server.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ config:
1919
- name: firecrawl.api_key
2020
env: FIRECRAWL_API_KEY
2121
example: YOUR-API-KEY
22+
description: If you don't have an account, create one and get a key from [here](https://www.firecrawl.dev/app/api-keys)
2223
env:
2324
- name: FIRECRAWL_API_URL
2425
example: https://api.firecrawl.dev/v1

servers/github-official/server.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ config:
2323
- name: github.personal_access_token
2424
env: GITHUB_PERSONAL_ACCESS_TOKEN
2525
example: <YOUR_TOKEN>
26+
description: You can create a GitHub personal access token [on GitHub](https://github.com/settings/personal-access-tokens/new)
2627
oauth:
2728
- provider: github
2829
secret: github.personal_access_token

servers/linkedin-mcp-server/server.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ config:
2323
- name: linkedin-mcp-server.cookie
2424
env: LINKEDIN_COOKIE
2525
example: AQETADxR7bsCqpZlAAACm-lNHKAAA...
26+
description: See the [Getting the LinkedIn Cookie](https://github.com/stickerdaniel/linkedin-mcp-server?tab=readme-ov-file#getting-the-linkedin-cookie) section in the documentation
2627
env:
2728
- name: USER_AGENT
2829
example: "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36"

servers/mcp-discord/server.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ config:
1919
- name: discord.token
2020
env: DISCORD_TOKEN
2121
example: YOUR_DISCORD_TOKEN
22+
description: You can obtain a token from the [Discord Developer Portal](https://discord.com/developers/applications)

servers/obsidian/server.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ source:
1515
branch: docker-support
1616
commit: b20ad46eea43988a4c1a6f8ec7947ef4c6cbf9a9
1717
config:
18-
description: Configure the connection to Obsidian
18+
description: Configure the connection of [Local REST API](https://github.com/coddingtonbear/obsidian-local-rest-api) to Obsidian
1919
secrets:
2020
- name: obsidian.api_key
2121
env: OBSIDIAN_API_KEY
2222
example: YOUR_OBSIDIAN_API_KEY
23+
description: Find your API key in your Obsidian settings in the **Local REST API** section under **Plugins**.
2324
env:
2425
- name: OBSIDIAN_HOST
2526
example: host.docker.internal

0 commit comments

Comments
 (0)