Class Definition
Properties
| Property | Type | Description |
|---|---|---|
id | string | Unique scope identifier |
logger | FrontMcpLogger | Scope-specific logger |
entryPath | string | HTTP entry path |
routeBase | string | Route prefix |
ready | Promise<void> | Initialization promise |
metadata | ScopeMetadata | Configuration metadata |
Registry Accessors
tools
Get the tool registry.resources
Get the resource registry.prompts
Get the prompt registry.agents
Get the agent registry.skills
Get the skill registry.providers
Get the provider registry.auth
Get the primary auth provider.authProviders
Get the auth registry.apps
Get the app registry.hooks
Get the hook registry.plugins
Get the plugin registry (if configured).Service Accessors
notifications
Get the notification service.elicitationStore
Get the elicitation store.eventStore
Get the event store (if configured).skillSession
Get the skill session manager (if skills exist).toolUI
Get the tool UI registry.Flow Execution
runFlow(name, input, deps?)
Execute a named flow.runFlowForOutput(name, input, deps?)
Execute a flow and assert output exists.registryFlows(…flows)
Register additional flows.Accessing Scope
In Tools/Resources/Agents
From FrontMcpInstance
From DirectClient
The scope is internal to DirectClient, accessed through its methods:Usage Examples
Introspection
Event Handling
Skill Sessions
Initialization Sequence
The Scope initializes in this order:- Providers
- Hooks
- Flows
- Transport Service
- Elicitation Store
- Auth Registry
- Apps Registry
- Plugins
- Tools Registry
- Tool UI Registry
- Resources Registry
- Prompts Registry
- Agents Registry
- Skills Registry + Session Manager
- Notification Service
- Additional Flows
Related
FrontMcpInstance
Server bootstrap
ToolRegistry
Tool registry
ResourceRegistry
Resource registry
SkillRegistry
Skill registry