Skip to content

Make server fully compatible with client.NewInProcessClient #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 13, 2025

Conversation

jochil
Copy link
Contributor

@jochil jochil commented May 12, 2025

This is a follow up of #17

To allow using this server with the in-process client from https://github.com/mark3labs/mcp-go more changes were needed. Now the server itself is just a server.MCPServer struct and therefore can be used in the client.NewInProcessClient function. The code containing the handler functions was moved to the new FilesystemHandler struct.

I also added some tests and a github workflow for running them.

jochil added 4 commits May 12, 2025 21:38
... 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.
@ezynda3 ezynda3 merged commit 3f8a156 into mark3labs:main May 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants