Interface ExtensionContext
Server surface available while bootstrapping an extension. Experimental — the shape may change.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the completion registry façade.executor()Returns the handler executor.prompts()Returns the prompt registry façade.voidregisterHandler(String method, ExtensionMethodHandler handler) Registers a raw JSON-RPC method handler owned by this extension.Returns the resource registry façade.runtime()Returns handler runtime settings.tasks()Returns the task runtime façade.tools()Returns the tool registry façade.
-
Method Details
-
tools
Tools tools()Returns the tool registry façade. -
resources
Resources resources()Returns the resource registry façade. -
prompts
Prompts prompts()Returns the prompt registry façade. -
completions
Completions completions()Returns the completion registry façade. -
tasks
Tasks tasks()Returns the task runtime façade. -
executor
Executor executor()Returns the handler executor. -
runtime
RuntimeConfig runtime()Returns handler runtime settings. -
registerHandler
Registers a raw JSON-RPC method handler owned by this extension. Call fromServerExtension.bootstrap(ExtensionContext); the method is routed to this extension and gated byServerExtension.requiresMetaEnvelope()negotiation.- Parameters:
method- the JSON-RPC method name to dispatch to the handlerhandler- the transport-neutral handler
-