mcp servers for tools integration
In this monorepo, we have different servers for different tools integration.
Some of these servers are already available in the marketplace so you may not want to create a new server for them.
But if you want to create your own server for a tool and want to register them with windsurf local, you can do it here.
Install mcp by running pip install mcp.
- Create a new directory in the
serversdirectory. - Create a new file
client.pyin the directory. - Implement the required methods in the
client.pyfile. - Add the server to the
servers.pyfile. - Endorse the tools by annotating the methods with
@tool.
- Run the server by running
python server.py.
-
Register the MCP server by clicking on the "plug" icon on the right side of the screen on Windsurf.
-
This opens a config file.
-
For each of the servers in the
servers.pyfile, we would need to make an entry in the config file. -
Once added in config, these servers are now registered with Windsurf.
-
Restart Windsurf to apply the changes.
-
Click on the "plug" icon again and you should see the server in the list. If its disabled by default, click on the name and debug to see if there are any errors.
-
Use cascade to debug further if needed.
-
Once server is enabled, you can use the tools in the cascade from any Windsurf window.
