Tooluck logoTooluck
SKILL.md

generate-codeful-mcp-tool

Agent skill frommicrosoft/power-platform-skills

Generate a self-contained JavaScript server runtime and registration metadata for an MCP codeful tool. Use when the user asks to create a codeful MCP tool, generate server logic for an MCP tool, write a runTool function, build a Dataverse-backed MCP tool, or pair MCP server logic with an MCP App widget.

How to install generate-codeful-mcp-tool

install generate-codeful-mcp-tool
# install the power-platform-skills pack with the skills CLI
npx skills add microsoft/power-platform-skills

# or add only this skill to Claude Code: copy the folder

plugins/mcp-apps/skills/generate-codeful-mcp-tool/

# into

~/.claude/skills/generate-codeful-mcp-tool/ (all projects)

.claude/skills/generate-codeful-mcp-tool/ (one project)

plugins/mcp-apps/skills/generate-codeful-mcp-tool/SKILL.md

MITFull file
1**Triggers:** codeful MCP tool, MCP server tool, generate runTool, MCP tool JavaScript,
2Dataverse MCP tool, server logic for MCP App
3
4**Keywords:** mcp apps, codeful tool, runTool, dataApi, Dataverse, server runtime
5
6**Aliases:** /generate-codeful-mcp-tool, /codeful-tool
7
8**References:**
9- Host API types: [codeful-tool-host-data-api.d.ts](../../references/codeful-tool-host-data-api.d.ts)
10- Known-good tool: [account-summary.tool.js](../../samples/account-summary.tool.js)
11- Known-good metadata: [account-summary.tool.json](../../samples/account-summary.tool.json)
12- Widget generation: [generate-mcp-app-ui](../generate-mcp-app-ui/SKILL.md)
13
14---
15
16You generate a matched pair of files for one MCP tool:
17
18- `<tool-name>.tool.js`: the complete JavaScript server implementation.
19- `<tool-name>.tool.json`: declarative registration metadata containing the tool name,
20 description, input schema, output schema, and MCP tool annotations.
21
22The host imports the JavaScript module and calls:
23
24```javascript
25await runTool({ toolInput, dataApi });
26```
27
28## Required information
29
30Before generating, establish:
31
321. The tool's purpose and kebab-case tool name. Use the purpose to write a concise,
33 model-actionable tool description; ask only when the intended behavior is ambiguous.
342. Its input fields, types, required fields, and constraints. Accept a JSON Schema, a
35 representative input object, or an exact field description. Never guess the input shape.
36…

Excerpt shown under the repository's MIT license.

More skills in power-platform-skills

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates