Module: OKF::MCP
- Defined in:
- lib/okf/mcp.rb,
lib/okf/plugin.rb,
lib/okf/mcp/app.rb,
lib/okf/mcp/cli.rb,
lib/okf/mcp/http.rb,
lib/okf/mcp/server.rb,
lib/okf/mcp/backend.rb,
lib/okf/mcp/filters.rb,
lib/okf/mcp/version.rb,
lib/okf/mcp/registry.rb,
lib/okf/mcp/resources.rb,
lib/okf/mcp/memory_backend.rb,
lib/okf/mcp/output_schemas.rb
Overview
The MCP shell over the okf kernel — the fourth surface beside CLI, HTTP and
library. require "okf/mcp" loads the registry seam and the backends only;
the MCP SDK and the argv-facing pieces load on demand from okf/mcp/server
and okf/mcp/cli (the okf mcp verb requires the latter, inside #call),
so an embedding app never pays for the protocol machinery.
Defined Under Namespace
Modules: App, Backend, Filters, HTTP, OutputSchemas, Resources, Server Classes: CLI, Command, Error, MemoryBackend, Registry
Constant Summary collapse
- VERSION =
"1.2.0"
Class Method Summary collapse
-
.app(refs = [], **options) ⇒ Object
The Rack seam — the same server definition and stateless transport
--httpserves, as the app a config.ru runs (run OKF::MCP.app).
Class Method Details
.app(refs = [], **options) ⇒ Object
The Rack seam — the same server definition and stateless transport
--http serves, as the app a config.ru runs (run OKF::MCP.app).
Lazy, so requiring this file never pays for the protocol machinery.
23 24 25 26 |
# File 'lib/okf/mcp.rb', line 23 def self.app(refs = [], **) require_relative "mcp/app" App.build(refs, **) end |