Custom tools for Cursor agent

It would be amazing to have the ability to write and integrate custom tools for the composer agent. This feature would allow us to extend the agent capabilities and create powerful automation.

Imagine working on a web app. We could create tools like:

  • A tool to run the server.
  • A tool to retrieve the latest server logs.
  • A tool to perform GET/POST requests on the server and return the output.
  • A tool to run tests.

With these tools, I could ask the agent to develop a feature, write and execute tests, run everything on my local environment, and show me the results. This would allow the agent to iterate more smoothly within my setup. For those feeling adventurous, you could even give the agent tools to deploy code to staging or production environments (though I wouldn’t do it I guess).

Every codebase could then develop its own custom agent tools to share with its team, and customize the behavior for the context of the project. I can definitely see myself writing tools in this fashion in some .tools folder and exposing them to the agent.

Who’s ready to build this future? :rocket:

it is my quesion too,
even smaller, I want to config @web, so it call my local zoekt service to search all of our organization codebase.

how we can this feature?