Control MCP endpoint and tools

Use Control MCP tools to manage source control resources and collaboration workflows, including repositories, branches, files, commits, and pull requests.

MCP endpoints

You can use the following endpoint to connect to the Control MCP server:
https://<loop_hostname>/control/mcp

MCP tools available in Control

Use these tools when you need repository content updates, branch management, pull request operations, or repository search and discovery. Do not use these tools for planning entities, build execution, deployment execution, test execution, or value stream analytics reporting.

Parameter conventions:

  • owner and repo are required for repository-scoped operations.
  • index is the pull request number and must be a positive integer.
  • filePath must be a repository-relative path.
  • sha is required for safe file updates.
  • Use positive integers for pagination fields such as page, pageSize, or page_size.
Tools Description Input Output
control_approve_pull_request Approves a pull request. owner, repo, index

Confirmation that the pull request was approved.

control_assign_pull_request Assigns a pull request to a user. owner, repo, index, assignee(control username)

Confirmation that the pull request was assigned to the user.

control_create_branch Creates a branch. owner, repo, branch, old_branch

Confirmation that the branch was successfully created.

control_create_file Creates a file. owner, repo, filePath, content, message, branch_name

Confirmation that the file was successfully created and committed.

control_create_pull_request Creates a pull request. owner, repo, title, body, head, base

Details of the created pull request.

control_create_repo Creates a repository in personal account or organization. name

Details of the created repository.

control_delete_branch Deletes a branch. owner, repo, branch

Confirmation that the branch was successfully deleted.

control_delete_file Deletes a file. owner, repo, filePath, message, branch_name

Confirmation that the file was successfully deleted.

control_fork_repo Creates a fork of a repository. user, repo

Details of the forked repository.

control_get_dir_content Retrieves a list of entries in a directory. owner, repo, ref, filePath

List of directory entries (files and directories).

control_get_file_content Retrieves file content and metadata. owner, repo, ref, filePath

File content and metadata.

control_get_mcp_server_version Retrieves the Control MCP server version. None

Control MCP Server Version.

control_get_pull_request_by_index Retrieves a pull request by index. owner, repo, index

Details of the specified pull request.

control_list_branches Lists branches. owner, repo

List of branches in the repository.

control_list_my_repos Lists repositories for the authenticated user. page, pageSize

List of repositories.

control_list_pull_request_comments Lists all comments from a pull request (includes general comments and code review comments). owner, repo, index

List of pull request comments.

control_list_repo_commits Lists repository commits. owner, repo, page, page_size

List of repository commits.

control_list_repo_pull_requests Lists repository pull requests. owner, repo

List of repository pull requests.

control_merge_pull_request Merges pull request. owner, repo, index, merge_title

Confirmation that the pull request was successfully merged.

control_search_org_teams Searches organization teams. org, query

List of organization teams.

control_search_repos Searches repos. keyword

List of repositories matching the search criteria.

control_search_users Searches users. keyword

List of users matching the search criteria.

control_update_file Updates a file. owner, repo, filePath, sha, content, message, branch_name

Confirmation that the file was successfully updated and committed.

control_get_my_user_info Retrieves authenticated user information. None

User's information.

control_get_user_orgs Retrieves organizations associated with the authenticated user. None

List of organizations.

control_get_user_pending_approvals Lists pending approvals for the authenticated user. None

List of pending approvals.