tools.import_mcp_tool module

Import an MCP tool from GitHub and convert it to a native Stargazer tool.

Clones the target repository, scans for MCP tool definitions, sends the source to Cursor for conversion and then a second pass for security auditing, and finally installs the result into the bot’s tool registry with embeddings and documentation.

Requires the UNSANDBOXED_EXEC privilege.

async tools.import_mcp_tool.run(github_url, tool_name='', model='', ctx=None)[source]
Return type:

str

Parameters: