Extension Template Repositories and Environment Topology
Standard Template Repositories
Plugin Extension Stack
- Repository: jshook_plugin_template
- Application Scenario: Declaring custom tool signatures, expanding the security sandbox boundary, and bridging external systems in-process.
Built-in Project Configuration:
manifest.ts(Declarative entrypoint built uponPluginContract)- Local build pipeline (
dist/*.jscompilation output structure) - ToolExecution explicit allowlist adhering to the Principle of Least Privilege
- MVP reference for
ctx.invokeToolparallel execution paradigm - Integration of the core
@jshookmcp/extension-sdk
Workflow Extension Stack
- Repository: jshook_workflow_template
- Application Scenario: Orchestrating headless chronological execution graphs, codifying automated hijack pipelines.
Built-in Project Configuration:
workflow.ts(Graph declaration entrypoint built uponWorkflowContract)SequenceNodeandParallelNodesub-graph nesting paradigm- Contains a standard closed-loop interception pipeline (
network_enable->navigate-> concurrent signal telemetry -> credential extraction) - Integration of the core
@jshookmcp/extension-sdk
Compilation and Loading Specifications
Isolation Disclaimer: This section exclusively targets Extension developers. Main service consumers must adhere to the baseline
npx -y @jshookmcp/jshookbootstrap sequence without executing cross-compilation flows.
Unified Build Pipeline
After pulling the template branch, the following prerequisite compilation steps must be strictly executed:
bash
pnpm install
pnpm run build
pnpm run checkLoading Plugins
Mount the local plugin to the main process isolation zone:
bash
export MCP_PLUGIN_ROOTS=<path-to-cloned-jshook_plugin_template>Hot-Reload Sequence:
- Execute
extensions_reload - Execute
extensions_list - Execute
search_toolsto assert the exposure state
Loading Workflows
Mount the local workflow to the main process isolation zone:
bash
export MCP_WORKFLOW_ROOTS=<path-to-cloned-jshook_workflow_template>Hot-Reload Sequence:
- Execute
extensions_reload - Execute
list_extension_workflows - Execute
run_extension_workflow
TypeScript-First Development Contract
- The engineering configuration strictly recognizes
manifest.tsorworkflow.tssource references only. - Local build outputs, specifically
dist/manifest.jsanddist/workflow.js, are categorized as derivative artifacts and must not be committed to the repository by convention. - The core MCP loader supports concurrent
.tsand.jsdetection; in conflict scenarios, it enforces a hard prioritization of.jsto optimize execution tier performance. - Recommended Iteration Loop: Modify TS source -> Compile Locally -> Trigger
extensions_reload.
Official Registry Inclusion Criteria
If you require pushing your built Plugin/Workflow to the official Registry image, submit a ticket via jshookmcpextension Issues, attaching the following archival materials:
- Repository snapshot link
- Capability vector declaration
- Security allowlist impact assessment (
toolExecution.allowTools/network.allowHosts) - Invocation benchmark payload