Module: ZeroMcp
- Defined in:
- lib/zeromcp.rb,
lib/zeromcp/tool.rb,
lib/zeromcp/config.rb,
lib/zeromcp/schema.rb,
lib/zeromcp/server.rb,
lib/zeromcp/openapi.rb,
lib/zeromcp/sandbox.rb,
lib/zeromcp/scanner.rb,
lib/zeromcp/registry.rb,
lib/zeromcp/credentials.rb
Defined Under Namespace
Modules: Credentials, OpenApi, Registry, Sandbox, Schema, ToolDSL Classes: Config, Context, PromptLoader, PromptScanner, ResourceLoader, ResourceScanner, Scanner, Server, Tool, ToolLoader
Constant Summary collapse
- MIME_MAP =
--- Resource scanning ---
{ '.json' => 'application/json', '.txt' => 'text/plain', '.md' => 'text/markdown', '.html' => 'text/html', '.xml' => 'application/xml', '.yaml' => 'text/yaml', '.yml' => 'text/yaml', '.csv' => 'text/csv', '.css' => 'text/css', '.js' => 'application/javascript', '.ts' => 'text/typescript', '.sql' => 'text/plain', '.sh' => 'text/plain', '.py' => 'text/plain', '.go' => 'text/plain', '.rs' => 'text/plain', '.toml' => 'text/plain', '.ini' => 'text/plain', '.env' => 'text/plain' }.freeze
Class Method Summary collapse
-
.create_registry(tools, config: nil, title: nil, execute_timeout: nil) ⇒ Object
Top-level convenience, mirroring ZeroMcp.serve / ZeroMcp.serve_http.
- .serve(config_path = nil) ⇒ Object
- .serve_http(port: 3000, config_path: nil) ⇒ Object
Class Method Details
.create_registry(tools, config: nil, title: nil, execute_timeout: nil) ⇒ Object
Top-level convenience, mirroring ZeroMcp.serve / ZeroMcp.serve_http.
59 60 61 |
# File 'lib/zeromcp/registry.rb', line 59 def self.create_registry(tools, config: nil, title: nil, execute_timeout: nil) Registry.create(tools, config: config, title: title, execute_timeout: execute_timeout) end |