Class: Mcp::Tools::GetMergeRequestService

Inherits:
ApiService show all
Extended by:
Gitlab::Utils::Override
Defined in:
app/services/mcp/tools/get_merge_request_service.rb

Constant Summary

Constants inherited from BaseService

BaseService::UnauthorizedError

Instance Attribute Summary

Attributes inherited from BaseService

#current_user, #params, #project

Instance Method Summary collapse

Methods included from Gitlab::Utils::Override

extended, extensions, included, method_added, override, prepended, queue_verification, verify!

Methods inherited from BaseService

#initialize

Methods included from BaseServiceUtility

#deny_visibility_level, #event_service, #log_error, #log_info, #notification_service, #system_hook_service, #todo_service, #visibility_level

Methods included from Gitlab::Allowable

#can?, #can_all?, #can_any?

Constructor Details

This class inherits a constructor from BaseService

Instance Method Details

#descriptionObject



10
11
12
# File 'app/services/mcp/tools/get_merge_request_service.rb', line 10

def description
  'Get a single merge request.'
end

#input_schemaObject



15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'app/services/mcp/tools/get_merge_request_service.rb', line 15

def input_schema
  {
    type: 'object',
    properties: {
      id: {
        type: 'string',
        description: 'The global ID or URL-encoded path of the project.',
        minLength: 1
      },
      merge_request_iid: {
        type: 'integer',
        description: 'The internal ID of the project merge request.'
      }
    },
    required: %w[id merge_request_iid],
    additionalProperties: false
  }
end