Skip to content

Commit 3f8a156

Browse files
authored
Make server fully compatible with client.NewInProcessClient (mark3labs#20)
* refactor: split filesystem related code into new handler struct ... so the actual filesystem server is just the regular `server.MCPServer` struct. This way it can be used with the in-process client. Also added a test to cover this functionality. * ci(tests): add workflow for executing tests * refactor: apply linter suggestions * test(handler): add some test cases for the `read_file` tool
1 parent 01b8eef commit 3f8a156

File tree

8 files changed

+2153
-1994
lines changed

8 files changed

+2153
-1994
lines changed

.github/workflows/test.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Test
2+
3+
on: [push]
4+
5+
jobs:
6+
tests:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v4
11+
with:
12+
fetch-depth: 0
13+
14+
- name: Set up Go
15+
uses: actions/setup-go@v5
16+
with:
17+
go-version: '>=1.21.0'
18+
check-latest: true
19+
20+
- name: Run tests
21+
run: go test ./...

0 commit comments

Comments
 (0)