33 lines
818 B
Markdown
33 lines
818 B
Markdown
# Snippets TUI CMS / MCP Server
|
|
|
|
A simple command-line interface for managing my code snippets. Includes a MCP server for interacting with my snippets from Claude Code.
|
|
|
|
Written in Clojure via Babashka.
|
|
|
|
Interactive elements are powered by [Gum](https://github.com/charmbracelet/gum).
|
|
|
|
[Clojure Backend Repo](https://git.travisshears.com/travisshears/snippets)
|
|
|
|
## Run dev
|
|
|
|
To run commands:
|
|
|
|
```shell
|
|
$ bb -m snippets-cms.tui create
|
|
```
|
|
|
|
or
|
|
|
|
```shell
|
|
$ ./snippets_cms.bb
|
|
```
|
|
|
|
Or to play around and call individual functions using the REPL:
|
|
|
|
```shell
|
|
$ rlwrap bb repl
|
|
user=> (require '[snippets-cms.tui-actions.create :as command])
|
|
user=> (def mock-snippet {:title "mock snippet from repl" :slug "mock" :tags '("mock") :markdown "# This is a mock"})
|
|
#'user/mock-snippet
|
|
user=> (command/create-snippet mock-snippet)
|
|
```
|