Skip to content

Commit edd3c34

Browse files
committed
chore: add server project
- Add a polylith style project for the mcp server - Update README to show usage depending on this project
1 parent e92ba82 commit edd3c34

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

README.md

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,19 @@ implementation.
1616

1717
Add mcp-clj as a dependency to your project.
1818

19-
1. Clone the mcp-clj repository:
20-
21-
```bash
22-
git clone https://github.com/your-repo/mcp-clj.git
23-
```
24-
25-
2. Add the project as a dependency:
19+
1. Add the mcp-project as a dependency:
2620

2721
```clojure
28-
:mcp-clj {:extra-deps
29-
{org.hugoduncan/mcp-clj
30-
{:local/root
31-
"/path tp/mcp-clj"}}}
22+
:deps {org.hugoduncan/mcp-clj
23+
{:git/url "https://github.com/hugoduncan/mcp-clj"
24+
:git/sha "replace with latest git sha"
25+
:deps/root "projects/server"}}
3226
```
3327

34-
3. In the project, start the server:
28+
2. In the project, start the server:
3529

3630
```clojure
31+
(require 'mcp-clj.mcp-server.core)
3732
(def server (mcp-clj.mcp-server.core/create-server {:port 3001}))
3833
```
3934

projects/server/deps.edn

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{:deps
2+
{poly/http {:local/root "../../components/http"}
3+
poly/http-server {:local/root "../../components/http-server"}
4+
poly/json-rpc {:local/root "../../components/json-rpc"}
5+
poly/log {:local/root "../../components/log"}
6+
poly/mcp-server {:local/root "../../components/mcp-server"}}}

0 commit comments

Comments
 (0)