You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can already do this very easily. Here's a quick example basically replicating the server example in the README:
frommcp.server.fastmcpimportFastMCPfrominterpreterimportinterpretermcp=FastMCP("open_interpreter")
@mcp.tool()asyncdefdescribe_task(message: str) ->str:
"""Describe a task in natural language"""returninterpreter.chat(message)
@mcp.tool()asyncdefhistory() ->str:
"""Get the history of the conversation"""returninterpreter.messagesif__name__=="__main__":
mcp.run(transport='sse')
This would run as a remote mcp using sse but you can also switch transport to stdio if launching concurrently with the client
Is your feature request related to a problem? Please describe.
Create an MCP Server for OpenInterpreter so we can execute the code by request from other apps.
Describe the solution you'd like
Integrate OpenInterpreter into our MCP Clients such as VS Code, Cursor, etc.
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: