agentfront/frontmcp/frontmcp-extensibility

Claude Code and agent skill by agentfront/frontmcp

Trust tier 3
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when extending FrontMCP beyond the core SDK by integrating external npm packages, libraries, or third-party services into providers and tools. Covers VectoriaDB for in-memory semantic and vector search (ML-based embeddings or TF-IDF keyword engines, with persistence) and the tamper-evident, hash-chained skill audit log (pluggable signer and store, with chain verification). Triggers: add semantic search, vector search, embeddings, similarity search, recommendations, ML features, audit logging, or integrate an external library, database, or API beyond the built-in SDK.

Install

npx vskill@latest install agentfront/frontmcp/frontmcp-extensibility

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as agentfront/frontmcp/frontmcp-extensibility.

FrontMCP Extensibility

Patterns and examples for extending FrontMCP servers with external npm packages. The core SDK handles MCP protocol, DI, and lifecycle — this skill shows how to integrate third-party libraries as providers and tools.

When to Use This Skill

Must Use
  • Adding semantic search or similarity matching to your server (VectoriaDB)
  • Integrating an external npm package as a FrontMCP provider
  • Building tools that wrap third-party services (databases, APIs, ML models)
Recommended
  • Looking for patterns to structure external service integrations
  • Deciding between provider-based vs direct integration for a library
  • Adding capabilities like applescript automation, VM execution, or data processing
Skip When
  • You need to build core MCP components (see frontmcp-development)
  • You need to configure auth, transport, or CORS (see frontmcp-config)
  • You need to write a plugin with hooks and context extensions (see create-plugin)
Decision: Use this skill when integrating external libraries into your FrontMCP server as providers or tools.

Prerequisites

  • A FrontMCP project (see frontmcp-setup if you don't have one).
  • The external library installed as a runtime dependency (not devDependency).
  • Familiarity with FrontMCP providers and tools (see create-provider, create-tool).

Steps

  1. Pick the integration shape — provider for stateful clients (DB, search index), tool-only for stateless one-shot calls.
  2. Wrap the library in a provider — declare a typed DI token and a @Provider class so consumers depend on the boundary, not the library.
  3. Register it — add to @App({ providers: [...] }) or @FrontMcp({ providers: [...] }).
  4. Expose via tools/resources — call this.get(TOKEN) in ToolContext/ResourceContext; never import the library directly from the tool.
  5. Handle errors at the boundary — translate library-specific errors into PublicMcpError/InvalidInputError so MCP clients see structured failures.

Scenario Routing Table

ScenarioReferenceDescription
Add in-memory semantic search with VectoriaDBreferences/vectoriadb.mdTF-IDF or ML semantic indexing, provider+tool pattern
Add tamper-evident skill audit loggingreferences/skill-audit-log.mdHash-chained, signed audit records for skill executions
Load an app from an npm packagemulti-app-composition (in frontmcp-setup)App.esm('@scope/pkg@^1.0.0', { namespace: 'pkg' }) pattern
Connect to a remote MCP servermulti-app-composition (in frontmcp-setup)App.remote('https://...', { namespace: 'ns' }) pattern
Build a reusable plugin with hookscreate-plugin-hooks (in frontmcp-development)DynamicPlugin, context extensions, lifecycle hooks
Order a plugin's hooks against another plugincreate-plugin-hooks (in frontmcp-development)HookPhase bands, before / after, the dev hook trace
Run one app's hook for every appcreate-plugin-hooks (in frontmcp-development)appliesTo: 'all-apps' vs 'uncovered-apps' and scope
Build a custom adapter for an external sourcecreate-adapter (in frontmcp-development)DynamicAdapter for OpenAPI, GraphQL, or custom sources
Auto-generate tools from an OpenAPI specofficial-adapters (in frontmcp-development)OpenapiAdapter with filtering, auth, and transforms

Integration Pattern

The standard pattern for integrating any external library:

  1. Create a provider — wraps the library as a singleton or scoped service
  2. Register the provider — add to @App({ providers: [...] }) or @FrontMcp({ providers: [...] })
  3. Create tools — expose the provider's capabilities as MCP tools via this.get(ProviderClass) (the class itself is the DI token)
  4. Optionally create resources — expose data as MCP resources with autocompletion
typescript
// 1. Provider wraps the library (the class itself is the DI token)
@Provider({ name: 'my-search', scope: ProviderScope.GLOBAL })
export class SearchProvider {
private client: ExternalLibrary;
constructor() {
this.client = new ExternalLibrary({
/* config */
});
}
async search(query: string) {
return this.client.query(query);
}
}
// 2. Tool exposes it
@Tool({ name: 'search', inputSchema: { query: z.string() } })
export default class SearchTool extends ToolContext {
async execute(input: { query: string }) {
return this.get(SearchProvider).search(input.query);
}
}

Available Integrations

LibraryPurposeReference
VectoriaDBIn-memory TF-IDF semantic searchreferences/vectoriadb.md
Skill audit logTamper-evident hash-chained audit log for skill runsreferences/skill-audit-log.md

More integrations can be added as references (e.g., enclave-vm, applescript, database clients).

Common Patterns

PatternCorrectIncorrectWhy
Library accessthis.get(SearchToken) from a toolimport { client } from 'lib' in a toolDI boundary lets you swap implementations and test in isolation
Provider scopeProviderScope.GLOBAL for shared clientsNew instance per requestLibrary clients (DB pools, indices) are expensive to construct
Async initialisationonBootstrap() on the providerConstructor awaitConstructors can't be async; startup awaits onBootstrap()
Error surfacesThrow PublicMcpError/InvalidInputErrorRe-throw raw library errorsLibrary stack traces leak internals and aren't JSON-RPC error-coded

Verification Checklist

  • [ ] External library is in dependencies (not devDependencies)
  • [ ] Provider wraps the library, opening it in onBootstrap() and closing it in onShutdown() when it holds connections
  • [ ] Provider class is listed in @App or @FrontMcp providers: [...] array (the class itself is the DI token)
  • [ ] Tools use this.get(ProviderClass) to access the provider (not direct imports)
  • [ ] Error handling wraps library-specific errors into MCP error classes

Troubleshooting

ProblemCauseSolution
Cannot find module '<lib>' at runtimeLibrary declared as devDependency onlyMove to dependencies; rebuild the bundle if deploying as MCPB/CLI
Provider constructed once per requestDefault scope used; expensive client recreated each callSet scope: ProviderScope.GLOBAL on the @Provider decorator
Tool sees undefined from this.get(TOKEN)Provider not registered in the active @App/@FrontMcp scopeAdd the provider class to the scope's providers: [...] array
Browser build fails with Node-only libraryLibrary uses node: modules not available at the targetGate behind availableWhen.platform, or move the integration into a server-only app and call it via a remote transport

Examples

Each reference has matching examples under `examples/<reference>/`:

vectoriadb
ExampleLevelDescription
`product-catalog-search`AdvancedShows advanced VectoriaDB usage with typed document metadata, batch operations, filtered search by multiple criteria, and batch indexing of a product catalog.
`semantic-search-with-persistence`IntermediateShows how to use VectoriaDB for semantic search with transformer models, filtered search, and FileStorageAdapter for persistence across restarts.
`tfidf-keyword-search`BasicShows how to use TFIDFVectoria for zero-dependency keyword search in a FrontMCP provider, with field weights and index building.

Accessing This Skill

Skills are distributed as plain SKILL.md files plus a sibling references/ and examples/ tree, so consumers can pick whichever access mode fits:

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
146
Repository forks
6
7-day trend score
25

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 5 Aug 2026, 3 months ago.

Extension points

  • hookPre/post lifecycle hooks

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/agentfront/frontmcp/frontmcp-extensibility/badge)](https://verified-skill.com/skills/agentfront/frontmcp/frontmcp-extensibility)

Something wrong with this skill or its page? Tell us.