Module: SwaggerMCPTool

Defined in:
lib/swagger_mcp_tool.rb,
lib/swagger_mcp_tool/config.rb,
lib/swagger_mcp_tool/server.rb,
lib/swagger_mcp_tool/logging.rb,
lib/swagger_mcp_tool/api_client.rb,
lib/swagger_mcp_tool/auth_handler.rb,
lib/swagger_mcp_tool/stdio_server.rb,
lib/swagger_mcp_tool/tool_registry.rb,
lib/swagger_mcp_tool/swagger_client.rb,
lib/swagger_mcp_tool/tool_generator.rb,
lib/swagger_mcp_tool/helpers/request.rb,
lib/swagger_mcp_tool/helpers/tool_builder.rb,
lib/swagger_mcp_tool/helpers/tool_register.rb,
lib/swagger_mcp_tool/helpers/swagger_validator.rb,
lib/swagger_mcp_tool/helpers/parameter_processor.rb,
lib/swagger_mcp_tool/helpers/request_body_processor.rb

Overview

The SwaggerMCPTool module provides core functionality for the Swagger MCP Tool gem. It serves as a namespace for organizing related components, such as logging utilities, configuration management, and integration helpers for managing Swagger-based MCP services.

Defined Under Namespace

Modules: Helpers, Logging Classes: ApiClient, AuthHandler, Config, Error, Server, StdioServer, SwaggerClient, ToolGenerator, ToolRegistry

Class Method Summary collapse

Class Method Details

.configure(&block) ⇒ Object

Configure the server



22
23
24
# File 'lib/swagger_mcp_tool.rb', line 22

def self.configure(&block)
  Config.configure(&block)
end

.start_serverObject

Start the server with the current configuration



17
18
19
# File 'lib/swagger_mcp_tool.rb', line 17

def self.start_server
  Server.start
end

.start_stdio_server(context = {}) ⇒ Object



26
27
28
29
# File 'lib/swagger_mcp_tool.rb', line 26

def self.start_stdio_server(context={})
  server = StdioServer.new
  server.start_stdio_server(context)
end