Improve tool handling (#28)

* Improve tool handling

* Rework stuff with new hosting options

* Update readme

* Fix build

* Try run client tests

* Fix build

* Fix issues on linux

* Try to run testserver on linux

* Fix test issue

* Fix code smells
This commit is contained in:
Toni Wenzel 2025-03-07 16:48:55 +01:00 • committed by GitHub
commit ec9bdfcf5d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,10 +3,8 @@ name: .NET Build, Test and publish
on:
push:
branches: [ "main", "master" ]
paths: [ 'src/**' ]
pull_request:
branches: [ "main", "master" ]
paths: [ 'src/**' ]
release:
types: [published,edited]
@ -24,7 +22,12 @@ jobs:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Fetch all history for all tags and branches
run: git fetch --prune --unshallow
run: |
if [ -f "$(git rev-parse --git-dir)/shallow" ]; then
git fetch --prune --unshallow
else
echo "Repository is already complete."
fi
- name: Setup .NET
uses: actions/setup-dotnet@v2
@ -33,6 +36,17 @@ jobs:
8.0.x
9.0.x
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Install dependencies for tests
run: npm install @modelcontextprotocol/server-everything
- name: Install dependencies for tests
run: npm install @modelcontextprotocol/server-memory
- name: Run Cake script
uses: cake-build/cake-action@v1
with: