Skip to content

Commit

Permalink
No way of creating dirs in thread volume
Browse files Browse the repository at this point in the history
  • Loading branch information
slimslenderslacks committed Jan 27, 2025
1 parent ac91411 commit a45905f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion prompts/examples/qrencode.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ parameter-values:

# prompt

Generate a QR code for the content '{{content}}' and write the output to the file `/thread/resources/qrcode.png`.
Generate a QR code for the content '{{content}}' and write the output to the file `/thread/qrcode.png`.
If the command fails, read the man page and try again.
If successful, output the path to the generated image in markdown syntax.

Expand Down
5 changes: 4 additions & 1 deletion src/volumes.clj
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,17 @@
{:image "vonwig/bb:latest"
:thread-id thread-id
:command [(json/generate-string
{:directory "/thread/resources"} keyword)
{:directory "/thread"} keyword)
(script/read "src/volumes/collect.clj")]})
:pty-output
(json/parse-string keyword))
(catch Throwable t
(logger/error t "error collecting mcp resources")
{})))

(comment
(script/read "src/volumes/collect.clj"))

(comment
(->
(docker/run-container
Expand Down

0 comments on commit a45905f

Please sign in to comment.