Connecting a SourceCraft MCP server to a third-party plugin

SourceCraft has its own MCP server that provides tools for intellectual use of the SourceCraft platform. It includes tools you need to work with pull requests, issues, milestones, etc.

You can use an MCP server in the SourceCraft Code Assistant plugin for VS Code or in any other IDE plugin that supports MCP.

As an example, this guide describes connecting a SourceCraft MCP server to Roo Code in VS Code.

  1. Install the Roo Code plugin.

  2. Get a PAT token.

    Warning

    Only the repositories for which the PAT token was issued will be available via the MCP server.

  3. Add the MCP server to Roo Code:

    1. Select Roo Code in the left-hand panel of the VS code window.

    2. At the top of the window that opens, select Views and More Actions...MCP Servers.

    3. Enable the Enable MCP Servers option.

    4. Select the file you want to configure:

      • Edit Global MCP: Opens the global file named mcp_settings.json.
      • Edit Project MCP: Opens the project file named .roo/mcp.json. If there is no such file, Roo Code will create it automatically.
    5. Copy the MCP server configuration to the file that opens by substituting your PAT token value:

      {
        "mcpServers": {
          "sourcecraft": {
            "type": "streamable-http",
            "url": "https://api.sourcecraft.tech/mcp",
            "headers": {
              "Authorization": "Bearer <PAT-token>"
            }
          }
        }
      }
      
    6. After you save the changes in the configuration file, the sourcecraft MCP server will appear in the same settings window. To enable or disable tools, click the name of the MCP server you just added.

You can learn more about configuring an MCP server in this Roo Code guide.