File tree Expand file tree Collapse file tree 5 files changed +68
-7
lines changed Expand file tree Collapse file tree 5 files changed +68
-7
lines changed Original file line number Diff line number Diff line change @@ -2159,6 +2159,28 @@ registry:
2159
2159
prompts : 0
2160
2160
resources : {}
2161
2161
puppeteer :
2162
- description : Browser automation and web scraping using Puppeteer.
2163
- ref : github:docker/labs-ai-tools-for-devs?path=prompts/mcp/puppeteer.md
2164
- icon : https://avatars.githubusercontent.com/u/182288589?s=200&v=4
2162
+ description : |
2163
+ UNDER CONSTRUCTION (support long running browser cache)
2164
+ Browser automation and web scraping using Puppeteer.
2165
+ ref : https://img.icons8.com/officel/80/under-construction.png
2166
+ icon : https://img.icons8.com/officel/80/under-construction.png
2167
+ filesystem :
2168
+ description : |
2169
+ UNDER CONSTRUCTION (needs config parameters)
2170
+ Local filesystem access with configurable allowed paths
2171
+ ref : github:docker/labs-ai-tools-for-devs?path=prompts/mcp/filesystem.md
2172
+ icon : https://img.icons8.com/officel/80/under-construction.png
2173
+ config :
2174
+ - name : filesystem
2175
+ description : The MCP server is allowed to access these paths
2176
+ parameters :
2177
+ paths :
2178
+ type : array
2179
+ items :
2180
+ type : string
2181
+ webresearch :
2182
+ description : |
2183
+ UNDER CONSTRUCTION (declarative state caching in volumes) A Model Context Protocol (MCP) server for web research, enabling real-time information retrieval and webpage content extraction for Claude.
2184
+ ref : github:docker/labs-ai-tools-for-devs?path=prompts/mcp/webresearch.md
2185
+ icon : https://img.icons8.com/officel/80/under-construction.png
2186
+
Original file line number Diff line number Diff line change
1
+ ---
2
+ mcp :
3
+ - container :
4
+ image : mcp/filesystem:latest
5
+ workdir : /app
6
+ volumes :
7
+ - " {{filesystem.paths|volume|into}}"
8
+ command :
9
+ - " {{filesystem.paths|into}}
10
+ parameters-values:
11
+ filesystem.allowed_paths:
12
+ - /Users/slim
13
+ ---
14
+
Original file line number Diff line number Diff line change
1
+ ---
2
+ mcp :
3
+ - container :
4
+ image : mcp/puppeteer:latest
5
+ workdir : /app
6
+ environment :
7
+ - DOCKER_CONTAINER=true
8
+ ---
Original file line number Diff line number Diff line change
1
+ ---
2
+ mcp :
3
+ - container :
4
+ image : mcp/webresearch:latest
5
+ workdir : /app
6
+ ---
7
+
8
+
Original file line number Diff line number Diff line change 20
20
[:safe [:coll (into [] v)]]
21
21
v)))
22
22
23
+ (filters/add-filter! :volume (fn [v]
24
+ (if (coll? v)
25
+ (->> v (map #(format " %s:%s" % %)) (into []))
26
+ v)))
27
+
28
+ (comment
29
+ " this allows us to expand strings into lists of strings to be spread into container definitions"
30
+ (selmer/render " {{hello.you|volume|into}}" {:hello {:you [" yes" " no" ]}}))
31
+
23
32
(defn interpolate [m template]
24
33
(when-let [s (selmer/render template m {})]
25
34
(if-let [parsed (try (edn/read-string s) (catch Throwable _ nil ))]
117
126
(if (= :mcp (:type function-call))
118
127
; ; start mcp container
119
128
(async/<!!
120
- (client/call-tool
121
- function-call
122
- {:name function-name
123
- :arguments (json/parse-string json-arg-string keyword)}))
129
+ (client/call-tool
130
+ function-call
131
+ {:name function-name
132
+ :arguments (json/parse-string json-arg-string keyword)}))
124
133
; ; start pure container
125
134
(docker/run-container function-call))
126
135
exit-code-fail? (if (false ? (:check-exit-code definition ))
You can’t perform that action at this time.
0 commit comments