How this skill is triggered — by the user, by Claude, or both
Slash command
/forge-mcp:mcp-add-resourceThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Guide the user through adding a resource (read-only data) to their MCP server.
Guide the user through adding a resource (read-only data) to their MCP server.
Ask:
config://app-settings — one fixed URIusers://{userId} — parameterized URIFollow MCP URI conventions:
users://, config://, docs://{paramName} placeholders: users://{userId}/profileCreate src/resources/<name>.ts:
export async function <name>Handler(uri: URL, params?: Record<string, string>) {
// Extract params if template resource
// const id = uri.split("://")[1];
const data = /* fetch data */;
return {
contents: [{
uri,
mimeType: "application/json", // or "text/plain"
text: JSON.stringify(data),
}],
};
};
Update src/index.ts:
For static resources:
.resource("config://settings", "App Settings", settingsHandler, {
description: "Current application configuration",
mimeType: "application/json",
})
For template resources:
.resourceTemplate("users://{userId}", "User Profile", userProfileHandler, {
description: "Read a user profile by ID",
mimeType: "application/json",
})
Create tests/resources/<name>.test.ts with:
Run npm run typecheck && npm test and report results.
npx claudepluginhub randyquaye/forge-mcp --plugin forge-mcpAdds static or template resources to existing FastMCP servers via interactive prompts for URI, name, MIME type, parameters, content type, and data source, generating TypeScript code.
Scaffolds MCP resource definitions with URI templates, Zod-validated params, and pagination support. Useful when adding a data endpoint or exposing data via URI in an MCP server.
Guides MCP server development with tool design, resource endpoints, prompt templates, and transport configuration using the MCP SDK.