Skip to content

Commit 01b8a6f

Browse files
Update catalog and docs
1 parent 5c9e907 commit 01b8a6f

File tree

3 files changed

+52
-1
lines changed

3 files changed

+52
-1
lines changed

docs/content/tools/docs/claude-desktop.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Enable mcp_run in your claude_desktop_config.json file using the following snipp
1717
"mcp/docker:latest",
1818
"serve",
1919
"--mcp",
20-
"--register", "github:docker/labs-ai-tools-for-devs?path=prompts/examples/hello_world.md"
20+
"--register", "github:docker/labs-ai-tools-for-devs?path=prompts/bootstrap.md"
2121
]
2222
}
2323
}

prompts/bootstrap.md

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
tools:
3+
- name: register-skill
4+
description: Register a new skill
5+
parameters:
6+
type: object
7+
properties:
8+
name:
9+
type: string
10+
ref:
11+
type: string
12+
container:
13+
image: alpine:latest
14+
volumes:
15+
- "docker-prompts:/prompts"
16+
command:
17+
- sh
18+
- "-c"
19+
- |
20+
echo "{{name}} {{ref}}" >> /prompts/skills.txt
21+
---
22+
23+
# prompt
24+
25+
Start by asking the user for the name of the skill they want to register.
26+
Once you have a name, ask the user for a github ref. Complain if the github ref is not of the form `github:owner/repo?path=path/to/file.md`. If the user provides a valid ref, register the skill using the `register-skill` tool. Finally, ask the user if they want to register another skill.

prompts/examples/ffmpeg.md

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
tools:
3+
- name: imagemagick
4+
- name: ffmpeg
5+
description: run the ffmpeg command
6+
parameters:
7+
type: object
8+
properties:
9+
args:
10+
description: arguments to pass to ffmpeg
11+
type: array
12+
items:
13+
type: string
14+
container:
15+
image: linuxserver/ffmpeg:version-7.1-cli
16+
command:
17+
- "{{args|into}}"
18+
---
19+
20+
# prompt user
21+
22+
Use ffmpeg to convert the file UsingPuppeteer.mp4 into an animated gif file at 1 frame per second.
23+
The output file should be named UsingPuppeteer.gif.
24+
25+
Then count the number of frames in UsingPuppeteer.gif.

0 commit comments

Comments
 (0)