File tree 5 files changed +31
-8
lines changed
5 files changed +31
-8
lines changed Original file line number Diff line number Diff line change 1
1
---
2
+ name : " ffmpeg - convert to gif"
2
3
tools :
3
4
- name : imagemagick
4
5
- name : ffmpeg
5
6
description : run the ffmpeg command
6
7
parameters :
7
8
type : object
8
9
properties :
10
+ basedir :
11
+ type : string
9
12
args :
10
13
description : arguments to pass to ffmpeg
11
14
type : array
12
15
items :
13
16
type : string
14
17
container :
15
18
image : linuxserver/ffmpeg:version-7.1-cli
19
+ volumes :
20
+ - " {{basedir|safe}}:{{basedir|safe}}"
16
21
command :
17
22
- " {{args|into}}"
23
+ model : claude-3-5-sonnet-20241022
18
24
---
19
25
20
26
# prompt user
21
27
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.
28
+ You will convert /Users/slim/vids/UsingPuppeteer.mp4 to a gif using ffmpeg.
29
+
30
+ Figure out the basedir for this file and use that as the basedir parameter when running ffmpeg.
31
+
32
+ Use ffmpeg to convert this file to an animated gif. The output .gif file should be written to the /thread directory and the filename
33
+ should be the same as the input file but with the file extension .gif.
34
+
35
+ Then count the number of frames in the output .gif file.
24
36
25
- Then count the number of frames in UsingPuppeteer.gif.
Original file line number Diff line number Diff line change 1
1
---
2
- name : hello from Docker
2
+ name : hello Docker
3
3
description : send a greeting from Docker
4
4
model : claude-3-5-sonnet-20241022
5
5
tools :
20
20
21
21
# prompt user
22
22
23
- Ask the user what kind of a greeting they 'd like to receive.
23
+ Ask what kind of a greeting I 'd like to receive.
24
24
Once you have the answer, generate a greeting and send it to Docker.
Original file line number Diff line number Diff line change 1
1
---
2
+ name : mcp-sqlite
2
3
description : A prompt to seed the database with initial data and demonstrate what you can do with an SQLite MCP Server + Claude
3
4
model : claude-3-5-sonnet-20241022
4
5
tools :
Original file line number Diff line number Diff line change 10
10
(defn get-prompt-data [{:keys [register] :as opts}]
11
11
(logger/info " get-prompt-data " register)
12
12
(->> register
13
- (map (fn [ref] [ref (git/prompt-file ref)]))
13
+ (map (fn [ref]
14
+ [ref
15
+ (try
16
+ (git/prompt-file ref)
17
+ (catch Throwable t
18
+ (logger/error t (format " missing ref %s" ref))
19
+ :missing ))]))
20
+ (filter (complement #(= :missing (second %))))
14
21
(map (fn [[ref f]]
15
22
(let [m (prompts/get-prompts (assoc opts :prompts f))]
16
23
[(or (-> m :metadata :name ) ref) m])))
Original file line number Diff line number Diff line change 118
118
:messages (prompt-function (or arguments {}))}))
119
119
120
120
(defmethod lsp.server /receive-request " resources/list" [_ _ _]
121
+ (logger/info " resources/list" )
121
122
{:resources []})
122
123
123
- (defmethod lsp.server /receive-request " resources/read" [_ _ _]
124
+ (defmethod lsp.server /receive-request " resources/read" [_ _ params]
125
+ (logger/info " resouces/read" params)
124
126
{:contents []})
125
127
126
128
(defmethod lsp.server /receive-request " resources/templates/list" [_ _ _]
129
+ (logger/info " resources/templates/list" )
127
130
{:resource-templates
128
131
; ; uriTemplate, name, description, mimeType
129
132
; ; uriTemplates have parameters like {path}
130
133
; ; example: "file:///{path}
131
134
[]})
132
135
133
- (defmethod lsp.server /receive-request " resources/subscribe" [_ _ _]
136
+ (defmethod lsp.server /receive-request " resources/subscribe" [_ _ params]
137
+ (logger/info " resources/subscribe" params)
134
138
{:resource-templates []})
135
139
136
140
(defmethod lsp.server /receive-request " tools/list" [_ {:keys [db*]} _]
You can’t perform that action at this time.
0 commit comments