Decorator Categories
Server Decorators
@FrontMcp- Bootstrap MCP server@App- Define application modules
Entry Decorators
@Tool- Define MCP tools@Resource/@ResourceTemplate- Define resources@Prompt- Define prompt templates@Agent- Define autonomous agents@Skill- Define knowledge packages@Job- Define executable jobs@Workflow- Define multi-step workflows
Extension Decorators
@Plugin- Create plugins@Provider- Dependency injection@Adapter- Framework adapters
Hook Decorators
@Stage- Define flow stages@Will- Before-stage hooks@Did- After-stage hooks@Around- Wrap-stage hooks
Class-Based vs Function-Based
Most entry decorators support both patterns:Class-Based (Recommended for Complex Logic)
Function-Based (Simpler Definitions)
Type Inference
FrontMCP provides full type inference for inputs and outputs:Common Patterns
Metadata Properties
All entry decorators share common metadata properties:| Property | Type | Description |
|---|---|---|
name | string | Required unique identifier |
description | string | Human-readable description |
id | string | Optional stable ID for tracking |
tags | string[] | Categorization tags |
Context Access
All context classes provide:Next Steps
@FrontMcp
Bootstrap your MCP server
@Tool
Create MCP tools
@Resource
Define resources
@Prompt
Create prompt templates
@Job
Define executable jobs
@Workflow
Define multi-step workflows