Control MCP endpoint and tools

You can find information about Control MCP tools and explore the available tools for managing repositories, branches, files, 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

Tools Description Input Output
control_approve_pull_request Approves 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 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 branch. owner, repo, branch

Confirmation that the branch was successfully deleted.

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

Confirmation that the file was successfully deleted.

control_fork_repo Gets fork repository. user, repo

Details of the forked repository.

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

List of directory entries (files and directories).

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

File content and metadata.

control_get_mcp_server_version Gets Control MCP server version. None

Control MCP Server Version.

control_get_pull_request_by_index Gets 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 List my repositories. 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 Search users. keyword

List of users matching the search criteria.

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

Confirmation that the file was successfully updated and committed.

control_get_my_user_info Gets my user info. None

User's information.

control_get_user_orgs Gets organizations associated with the authenticated user. None

List of organizations.

control_get_user_pending_approvals List the user's pending approvals. None

List of pending approvals.