Agent skill

MCP API Tool

by nuonco in nuonco/nuon

A skill your agent uses when adding or changing a ctl-api MCP tool (RegisterMCPTools, mcp.go handlers).

AGPL-3.0Auto-check passedAgent Workflows

Install MCP API Tool

skills CLI
$ npx skills add nuonco/nuon --skill mcp-api-tool -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install nuonco/nuon mcp-api-tool --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/nuonco/nuon.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/mcp-api-tool .claude/skills/mcp-api-tool && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
mcp-api-tool
GitHub stars
118
Token cost
~769 tokens
SKILL.md length
364 words
Files
1
Skills in repo
1
Repo updated
First seen
Licence
AGPL-3.0

At a glance

A skill your agent uses when adding or changing a ctl-api MCP tool (RegisterMCPTools, mcp.go handlers).

  • Works in 11 steps: Pick the domain service under… → Add mcp_.go with an input struct (json +… → Read org/account/token role from… → …
  • Changing a ctl-api MCP tool (RegisterMCPTools
  • SKILL.md covers Steps and Anti-Patterns
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

MCP API Tool is an agent skill from nuonco/nuon. Use this skill when adding or changing a ctl-api MCP tool (RegisterMCPTools, mcp.go handlers).

Its SKILL.md is about 770 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Agent Workflows, covering MCP servers. It works with Model Context Protocol and Terraform. The repository describes itself as: An open-source platform for software vendors to deploy and operate their software in their customers' cloud accounts. aka Bring Your Own Cloud (BYOC). The licence is AGPL-3.0.

When your agent uses it

  • Changing a ctl-api MCP tool (RegisterMCPTools
  • Mcp.go handlers)

Example prompts

  • “/mcp-api-tool”

Workflow steps

11 steps, taken from the first numbered list in SKILL.md.

  1. Pick the domain service under services/ctl-api/internal/app//service/ that already implements api.Service and is in FX group:"services".
  2. Add mcp_.go with an input struct (json + jsonschema tags) and a handler matching func(ctx, *mcp.CallToolRequest, in T)…
  3. Read org/account/token role from keys.*FromContext(ctx) — never Gin context.
  4. Return payloads via api.MCPJSONResult(...) (compact JSON text content).
  5. Register the tool in that domain’s mcp_register.go with mcp.AddTool(server, api.MCPReadTool(...)|api.MCPWriteTool(...), handler) so Title…
  6. For mutating tools: prefix Description with WRITE OPERATION:, use api.MCPWriteTool(..., destructive, idempotent), and call…
  7. For read tools scoped to an org: use api.MCPReadTool(...) and call require.Read(ctx) at the start of the handler.
  8. Prefer trimmed response shapes over full GORM models when the payload would be large for LLM context. Format times with api.MCPTime (UTC…
  9. List tools must use api.MCPListPage (default 20, max 100), Limit(limit+1), and api.MCPClipList. Return has_more / next_offset. Append…
  10. No new MCP-specific FX wiring — RegisterMCPTools is discovered via type assert on api.MCPService.
  11. Update the tool tables in docs/guides/agents/tools.mdx and bins/cli/cmd/agents_context.md. Add a prompt to…

What it can do on your machine

Read from SKILL.md and the folder at commit f44762f. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

MCP API Tool loads about 769 tokens when it runs. Until then it costs about 27 tokens; SKILL.md has 364 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~27
When it runs · the whole SKILL.md, loaded when a task matches
~769

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from nuonco/nuon at commit f44762f, republished under its AGPL-3.0 licence (© nuonco). 364 words, ~769 tokens.

Download SKILL.mdSave it as .claude/skills/mcp-api-tool/SKILL.md (or your agent's skills folder).
name
mcp-api-tool
description
Use this skill when adding or changing a ctl-api MCP tool (RegisterMCPTools, mcp_*.go handlers).
model
sonnet
color
blue

This skill enforces the ctl-api MCP tool registration pattern for the stateless Streamable HTTP server.

Steps

  1. Pick the domain service under services/ctl-api/internal/app/<domain>/service/ that already implements api.Service and is in FX group:"services".
  2. Add mcp_<name>.go with an input struct (json + jsonschema tags) and a handler matching func(ctx, *mcp.CallToolRequest, in T) (*mcp.CallToolResult, any, error).
  3. Read org/account/token role from keys.*FromContext(ctx) — never Gin context.
  4. Return payloads via api.MCPJSONResult(...) (compact JSON text content).
  5. Register the tool in that domain’s mcp_register.go with mcp.AddTool(server, api.MCPReadTool(...)|api.MCPWriteTool(...), handler) so Title and Annotations are always set.
  6. For mutating tools: prefix Description with WRITE OPERATION:, use api.MCPWriteTool(..., destructive, idempotent), and call require.Write(ctx) at the start of the handler.
  7. For read tools scoped to an org: use api.MCPReadTool(...) and call require.Read(ctx) at the start of the handler.
  8. Prefer trimmed response shapes over full GORM models when the payload would be large for LLM context. Format times with api.MCPTime (UTC RFC3339 …Z) — do not serialize time.Time, add relative age strings, or localize on the server.
  9. List tools must use api.MCPListPage (default 20, max 100), Limit(limit+1), and api.MCPClipList. Return has_more / next_offset. Append api.MCPListToolHint to the description. Do not loop until the full set is loaded.
  10. No new MCP-specific FX wiring — RegisterMCPTools is discovered via type assert on api.MCPService.
  11. Update the tool tables in docs/guides/agents/tools.mdx and bins/cli/cmd/agents_context.md. Add a prompt to docs/guides/agents/sample-queries.mdx if the tool is part of a user-facing flow.

Reference examples: apps/service/mcp_list_apps.go, apps/service/mcp_register.go, installs/service/mcp_approve_step.go.

Show full SKILL.md (123 more words)Show less

Anti-Patterns

  • Do not implement tools only in the CLI proxy — tools live in ctl-api; the CLI forwards them.
  • Do not skip require.Write on write tools — description prefix / annotations alone are not enough.
  • Do not skip require.Read on org-scoped read tools.
  • Do not register tools with bare &mcp.Tool{Name, Description} — always use MCPReadTool / MCPWriteTool.
  • Do not key request state on Mcp-Session-Id — the server is Stateless: true; use bearer token + X-Nuon-Org-ID / select_org.
  • Do not print to stdout from tool handlers — MCP protocol owns the stream.
  • Do not serialize time.Time, add *_relative age fields, or render local timestamps — use MCPTime; agents convert UTC to local.
  • Do not Find a collection without api.MCPListPage / Limit(limit+1) / MCPClipList. Return has_more and next_offset; do not loop until the full set is loaded.

© nuonco, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/mcp-api-tool of nuonco/nuon.

Open the folder on GitHubat commit f44762f

Compare with similar skills

MCP API Tool next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

MCP API Tool compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
MCP API Tool this skillnuonco/nuon118—~769Automated safety check: PassAGPL-3.0
Google Cloud Storage Basicsgoogle/skills21k—~2.8kAutomated safety check: PassApache-2.0
Eks Best Practicesaws-samples/appmod-blueprints113—~5kAutomated safety check: PassMIT-0
MCP Server Builderanthropics/skills180k64 repos~2.3kAutomated safety check: PassApache-2.0
MCP Server BuildershareAI-lab/learn-claude-code78k5 repos~1.2kAutomated safety check: PassMIT
MCP Integration for Pluginsanthropics/claude-plugins-official38k11 repos~3.1kAutomated safety check: PassApache-2.0

Similar skills

  • Official

    Stores, retrieves, and manages data as objects in Cloud Storage on Google Cloud (also known colloquially as GCS) buckets.

    21k GitHub stars~2.8k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Eks Best Practices

    aws-samples/appmod-blueprints

    Official

    Advisory guidance for Amazon EKS architecture and configuration decisions — compute strategy, networking, security, reliability, cost, autoscaling, observability, multi-tenancy, and upgrade planning.

    113 GitHub stars~5k tokensUpdated today
    DevOps & CloudAuto-check passed
  • MCP Server Builder

    anthropics/skills

    Official

    Guides the design and implementation of Model Context Protocol servers in TypeScript or Python, from tool naming and error messages to evaluation.

    180k GitHub starsUsed in 64 repos~2.3k tokens
    Agent WorkflowsAuto-check passed
  • MCP Server Builder

    shareAI-lab/learn-claude-code

    Walks through building MCP servers in Python or TypeScript that expose tools, resources and prompts to Claude, with templates, registration and testing.

    78k GitHub starsUsed in 5 repos~1.2k tokens
    Agent WorkflowsAuto-check passed
  • MCP Integration for Plugins

    anthropics/claude-plugins-official

    Official

    Explains how to bundle Model Context Protocol servers in a Claude Code plugin, covering config files, stdio, SSE, HTTP and WebSocket server types, and authentication.

    38k GitHub starsUsed in 11 repos~3.1k tokens
    Agent WorkflowsAuto-check passed
  • Fastmcp Client CLI

    PrefectHQ/fastmcp

    Query and invoke tools on MCP servers using fastmcp list and fastmcp call.

    28k GitHub starsUsed in 1 repo~823 tokens
    Agent WorkflowsAuto-check passed

Categories

Questions about MCP API Tool

What does MCP API Tool do?

A skill your agent uses when adding or changing a ctl-api MCP tool (RegisterMCPTools, mcp.go handlers). MCP API Tool is an agent skill from nuonco/nuon.go handlers).

When should I use MCP API Tool?

MCP API Tool fits situations like: changing a ctl-api MCP tool (RegisterMCPTools; mcp.go handlers).

How do I install MCP API Tool in Claude Code?

Run `npx skills add nuonco/nuon --skill mcp-api-tool -a claude-code`. Or copy the skill folder (.agents/skills/mcp-api-tool in nuonco/nuon) into .claude/skills/mcp-api-tool in your project. Claude Code loads it when a task matches its description.

How do I install MCP API Tool in Codex?

Run `npx skills add nuonco/nuon --skill mcp-api-tool -a codex`. Or copy the skill folder (.agents/skills/mcp-api-tool in nuonco/nuon) into .agents/skills/mcp-api-tool in your project. Codex loads it when a task matches its description.

Can I use MCP API Tool in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add nuonco/nuon --skill mcp-api-tool -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/mcp-api-tool, .gemini/skills/mcp-api-tool, .github/skills/mcp-api-tool and .opencode/skills/mcp-api-tool in your project.

What does MCP API Tool need to run?

SKILL.md names no scripts, command-line tools or credentials: MCP API Tool is instructions for the agent only.

Does MCP API Tool access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is MCP API Tool safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does MCP API Tool use?

MCP API Tool is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does MCP API Tool use?

About 769 tokens (SKILL.md is roughly 3.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to MCP API Tool?

Skills that share tags, products or a category with MCP API Tool: Google Cloud Storage Basics (google/skills, 21k stars), Eks Best Practices (aws-samples/appmod-blueprints, 113 stars), MCP Server Builder (anthropics/skills, 180k stars) and MCP Server Builder (shareAI-lab/learn-claude-code, 78k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains MCP API Tool?

nuonco (a GitHub organization) maintains it in nuonco/nuon, which has 118 GitHub stars. The repository was last updated on October 8, 2026.

Source: nuonco/nuon on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.