agentfront/frontmcp/frontmcp-guides

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.

Tutorials, end-to-end walkthroughs, and complete reference projects for FrontMCP. Use when you want a getting-started guide, a full worked example, or to learn best practices by following a step-by-step build rather than a single API reference. Includes a beginner weather-API server (tool plus static resource, Zod schemas, E2E tests), an authenticated task manager (CRUD tools, Redis storage, OAuth, Vercel deploy, authenticated E2E tests), and a multi-app knowledge base (vector search, semantic resources, an AI research agent, audit logging). Triggers: tutorial, walkthrough, how do I build, getting started, end-to-end example, sample project, learn FrontMCP, full app example.

Install

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

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-guides.

FrontMCP End-to-End Guides

Complete build walkthroughs and best practices for FrontMCP servers. Each example starts from an empty directory and ends with a deployed, tested server. Every pattern references the specific skill that teaches it.

When to Use This Skill

Must Use
  • Starting a new FrontMCP project from scratch and want a complete walkthrough to follow
  • Learning FrontMCP architecture by building progressively complex real examples
  • Need to see how multiple skills work together in a complete application
Recommended
  • Planning a new project and want to see how similar architectures are structured
  • Onboarding a team member who learns best from complete working examples
  • Reviewing best practices for file organization, naming, and code patterns
Skip When
  • You need to learn one specific component type (use the specific reference, e.g., create-tool under frontmcp-development/references/)
  • Looking for the right reference for a task (use domain routers: frontmcp-development, frontmcp-deployment, etc.)
  • You need CLI/install instructions for the skills system (see frontmcp-skills-usage)
Decision: Use this skill when you want to see how everything fits together. Open individual references under each router's references/ directory when you need focused instruction.

Prerequisites

  • Node.js 24+ and npm/yarn installed
  • Familiarity with TypeScript and decorators
  • frontmcp CLI available globally (npm install -g frontmcp)

Steps

  1. Choose an example that matches your project's complexity level (Beginner, Intermediate, Advanced)
  2. Work through the Planning Checklist to define your project's scope
  3. Follow the example code and architecture, referencing individual skills for deeper guidance
  4. Verify your implementation using the Verification Checklist at the end of this skill

Planning Checklist

Before writing any code, answer these questions:

1. What does the server do?
  • What tools does it expose? (actions AI clients can call)
  • What resources does it expose? (data AI clients can read)
  • What prompts does it expose? (conversation templates)
2. How is it organized?
  • Single app or multiple apps? (see multi-app-composition)
  • Standalone project or Nx monorepo? (see project-structure-standalone, project-structure-nx)
3. How is it secured?
  • Public (no auth), transparent (passthrough), local (self-contained), or remote (OAuth)? (see configure-auth)
  • What session storage? Memory (dev), Redis (prod), Vercel KV (serverless)? (see configure-session)
4. Where does it deploy?
  • Node, Vercel, Lambda, Cloudflare, CLI, browser, or SDK? (see frontmcp-deployment)
  • What transport? stdio (local), SSE (streaming), Streamable HTTP (stateless)? (see configure-transport)
5. How is it tested?
  • Unit tests for each component (see setup-testing)
  • E2E tests for protocol-level flows
  • Coverage target: 95%+

Example 1: Weather API (Beginner)

Skills used: setup-project, create-tool, create-resource, setup-testing, deploy-to-node

A simple MCP server that exposes a weather lookup tool and a resource for supported cities.

Architecture
text
weather-api/
├── src/
│ ├── main.ts # @FrontMcp server (deploy-to-node)
│ ├── weather.app.ts # @App with tools and resources
│ ├── tools/
│ │ └── get-weather.tool.ts # @Tool: fetch weather by city (create-tool)
│ └── resources/
│ └── cities.resource.ts # @Resource: list supported cities (create-resource)
├── test/
│ ├── get-weather.tool.spec.ts # Unit tests (setup-testing)
│ └── weather.e2e.spec.ts # E2E protocol test (setup-testing)
└── package.json
Key Code

Server entry point (setup-project):

typescript
import { FrontMcp } from '@frontmcp/sdk';
import { WeatherApp } from './weather.app';
@FrontMcp({
info: { name: 'weather-api', version: '1.0.0' },
apps: [WeatherApp],
})
export default class WeatherServer {}

Tool (create-tool):

typescript
import { Tool, ToolContext, z } from '@frontmcp/sdk';
@Tool({
name: 'get_weather',
description: 'Get current weather for a city',
inputSchema: {
city: z.string().min(1).describe('City name'),
},
outputSchema: {
temperature: z.number(),
condition: z.string(),
humidity: z.number(),
},
})
export class GetWeatherTool extends ToolContext {
async execute(input: { city: string }) {
const city = encodeURIComponent(input.city);
const data = await this.fetch(`https://api.weather.example.com/v1?city=${city}`);
const json = await data.json();
return { temperature: json.temp, condition: json.condition, humidity: json.humidity };
}
}

Resource (create-resource):

typescript
import { ReadResourceResult, Resource, ResourceContext } from '@frontmcp/sdk';
@Resource({
uri: 'weather://cities',
name: 'Supported Cities',
description: 'List of cities with weather data',
mimeType: 'application/json',
})
export class CitiesResource extends ResourceContext {
async execute(uri: string): Promise<ReadResourceResult> {
return {
contents: [
{
uri,
mimeType: 'application/json',
text: JSON.stringify(['London', 'Tokyo', 'New York', 'Paris', 'Sydney']),
},
],
};
}
}
Full working code: See references/example-weather-api.md

Example 2: Task Manager (Intermediate)

Skills used: setup-project, create-tool, create-provider, configure-auth, configure-session, setup-redis, setup-testing, deploy-to-vercel

An authenticated task management server with CRUD tools, Redis storage, and OAuth.

Architecture
text
task-manager/
├── src/
│ ├── main.ts # @FrontMcp with auth: { mode: 'remote' }
│ ├── tasks.app.ts # @App with CRUD tools + provider
│ ├── providers/
│ │ └── task-store.provider.ts # @Provider: Redis-backed task storage (create-provider)
│ ├── tools/
│ │ ├── create-task.tool.ts # @Tool: create a task (create-tool)
│ │ ├── list-tasks.tool.ts # @Tool: list tasks (create-tool)
│ │ ├── update-task.tool.ts # @Tool: update task status (create-tool)
│ │ └── delete-task.tool.ts # @Tool: delete a task (create-tool)
│ └── types/
│ └── task.ts # Shared task interface
├── test/
│ ├── *.spec.ts # Unit tests per tool
│ └── tasks.e2e.spec.ts # E2E with auth flow
├── vercel.json # Vercel config (deploy-to-vercel)
└── package.json
Key Code

Server with auth (configure-auth, configure-session, setup-redis):

typescript
@FrontMcp({
info: { name: 'task-manager', version: '1.0.0' },
apps: [TasksApp],
auth: { mode: 'remote', provider: 'https://auth.example.com', clientId: 'my-client-id' },
redis: { provider: 'redis', host: process.env.REDIS_URL ?? 'localhost' },
})
export default class TaskManagerServer {}

Provider for shared storage (create-provider):

typescript
import { Provider, ProviderScope } from '@frontmcp/sdk';
@Provider({ name: 'task-store', scope: ProviderScope.GLOBAL })
export class TaskStoreProvider {
async create(task: Task): Promise<Task> {
/* Redis-backed implementation */
}
async list(userId: string): Promise<Task[]> {
/* ... */
}
async update(id: string, data: Partial<Task>): Promise<Task> {
/* ... */
}
async delete(id: string): Promise<void> {
/* ... */
}
}
Use the class itself as the DI token (this.get(TaskStoreProvider)). For factory-built singletons (e.g. when you need async setup before the class is constructed), use AsyncProvider({ provide, name, scope, useFactory }) instead.

Tool with DI (create-tool + create-provider):

typescript
import { Tool, ToolContext, UnauthorizedError, z } from '@frontmcp/sdk';
@Tool({
name: 'create_task',
description: 'Create a new task',
inputSchema: {
title: z.string().min(1).describe('Task title'),
priority: z.enum(['low', 'medium', 'high']).default('medium'),
},
outputSchema: { id: z.string(), title: z.string(), priority: z.string(), status: z.string() },
})
export class CreateTaskTool extends ToolContext {
async execute(input: { title: string; priority: string }) {
const store = this.get(TaskStoreProvider);
const userId = this.auth?.user.sub;
if (!userId) this.fail(new UnauthorizedError('Authentication required'));
return store.create({ title: input.title, priority: input.priority, status: 'pending', userId });
}
}
Full working code: See references/example-task-manager.md

Example 3: Knowledge Base (Advanced)

Skills used: setup-project, multi-app-composition, create-tool, create-resource, create-agent, create-skill-with-tools, create-plugin, official-plugins, configure-auth, deploy-to-vercel

A multi-app knowledge base with AI-powered search, document ingestion, and an autonomous research agent.

Architecture
text
knowledge-base/
├── src/
│ ├── main.ts # @FrontMcp composing 3 apps
│ ├── ingestion/
│ │ ├── ingestion.app.ts # @App: document ingestion
│ │ ├── tools/ingest-document.tool.ts
│ │ └── providers/vector-store.provider.ts
│ ├── search/
│ │ ├── search.app.ts # @App: search and retrieval
│ │ ├── tools/search-docs.tool.ts
│ │ └── resources/doc.resource.ts
│ ├── research/
│ │ ├── research.app.ts # @App: AI research agent
│ │ └── agents/researcher.agent.ts # @Agent: autonomous research loop
│ └── plugins/
│ └── audit-log.plugin.ts # @Plugin: audit logging
├── test/
│ └── *.spec.ts
├── vercel.json
└── package.json
Key Code

Multi-app composition (multi-app-composition):

typescript
@FrontMcp({
info: { name: 'knowledge-base', version: '1.0.0' },
apps: [IngestionApp, SearchApp, ResearchApp],
plugins: [AuditLogPlugin],
auth: { mode: 'remote', provider: 'https://auth.example.com', clientId: 'my-client-id' },
redis: { provider: 'redis', host: process.env.REDIS_URL ?? 'localhost' },
})
export default class KnowledgeBaseServer {}

AI Research Agent (create-agent):

typescript
@Agent({
name: 'research_topic',
description: 'Research a topic across the knowledge base and synthesize findings',
inputSchema: {
topic: z.string().describe('Research topic'),
depth: z.enum(['shallow', 'deep']).default('shallow'),
},
llm: {
provider: 'anthropic',
model: 'claude-sonnet-4-6',
apiKey: { env: 'ANTHROPIC_API_KEY' },
maxTokens: 4096,
}, // provider and model are client-configurable
execution: { maxIterations: 5 },
systemInstructions:
'Search for relevant documents using search_docs, synthesize findings, and produce a structured summary with source attribution.',
tools: [SearchDocsTool, IngestDocumentTool],
})
export class ResearcherAgent extends AgentContext {}
The framework drives the LLM tool-use loop via the agents:call-agent flow — you don't override execute(). Configure iteration limits and other runtime knobs through the @Agent({ execution: { maxIterations } }) block.
Full working code: See references/example-knowledge-base.md

Best Practices

Planning

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
144
Repository forks
7
7-day trend score
25

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

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-guides/badge)](https://verified-skill.com/skills/agentfront/frontmcp/frontmcp-guides)

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