Borrowing it
Nothing to install: this file belongs to refined-element/lightning-enable-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/refined-element/lightning-enable-mcp/main/.claude/skills/new-mcp-tool/SKILL.mdgit clone --depth 1 https://github.com/refined-element/lightning-enable-mcpWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/refined-element/lightning-enable-mcp/new-mcp-tool)<a href="https://agentmods.dev/skills/refined-element/lightning-enable-mcp/new-mcp-tool"><img src="https://agentmods.dev/badge/skills/refined-element/lightning-enable-mcp/new-mcp-tool/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/refined-element/lightning-enable-mcp/new-mcp-tool"><img src="https://agentmods.dev/badge/skills/refined-element/lightning-enable-mcp/new-mcp-tool.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00020 | $0.00706 |
| Opus 5.5 | $0.00008 | $0.00282 |
| Sonnet 5.5 | $0.00004 | $0.00141 |
| Haiku 4.5 | $0.00002 | $0.00071 |
Grade A, and why
new-mcp-tool scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 68 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Create a new MCP tool following project conventions. Use $ARGUMENTS for the tool name and description.
Steps
-
Create tool class in the appropriate tools directory
- Static class with
[McpServerToolType]attribute - Static method with
[McpServerTool(Name = "snake_case_name")]attribute - Add
[Description("...")]on EVERY parameter - Use flat parameters (no complex objects)
- Nullable optional service injection for wallet services
- Include
IsConfiguredcheck — return error result if required service not configured
- Static class with
-
Add models to the appropriate models file if needed
- Request/response records
-
Add service interface method in the service interface if the tool needs business logic beyond direct API calls
-
Implement service method in the implementation class
-
Update DI registration in
Program.csif new services are needed -
Write tests following existing test patterns
Patterns to Follow
[McpServerToolType]
public static class MyNewTool
{
[McpServerTool(Name = "my_new_tool")]
[Description("What this tool does")]
public static async Task<string> Execute(
[Description("Parameter description")] string requiredParam,
[Description("Optional parameter")] string? optionalParam = null,
IMyService? myService = null)
{
if (myService is null || !myService.IsConfigured)
return "Error: MyService is not configured. Set MY_ENV_VAR environment variable.";
// Implementation
return JsonSerializer.Serialize(result, new JsonSerializerOptions { WriteIndented = true });
}
}
Key Conventions
- Tool name:
snake_case(e.g.,get_btc_price,check_wallet_balance) - Class name: PascalCase + "Tool" suffix
- Return JSON-serialized results for structured data
- Use
[Description]on every parameter — MCP clients use these for documentation - Wallet priority: LND > NWC > Strike > OpenNode
- L402 requires preimage — only works with LND, Strike, CoinOS NWC, CLINK NWC, Alby Hub NWC
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 68 lines · 20 tokens per session scan A 98ec3df76379
new-mcp-tool is a skill published in the GitHub repository refined-element/lightning-enable-mcp (9 stars, last pushed 11d ago), licensed MIT. It adds 20 tokens to every session and 706 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
saturnzap
Non-custodial Lightning wallet for AI agents via sz CLI: send/receive sats, pay invoices, auto-pay HTTP 402 (L402), manage channels and liquidity. Use when: (1) paying for API access with Lightning, (2) creating or paying BOLT11 invoices, (3) checking wallet balance or channel health, (4) managing peers and channels.…
lightning-memory
Decentralized agent memory with Nostr identity and Lightning L402 payments.
debridge
Complete deBridge Protocol SDK for building cross-chain bridges, message passing, and token transfers on Solana. Use when building cross-chain applications, bridging assets between Solana and EVM chains, or implementing trustless external calls.
near-intents
Cross-chain token swap integration using NEAR Intents 1Click API. Use when building swap widgets, bridge interfaces, or multi-chain transfers across EVM, Solana, NEAR, TON, Stellar, and Tron.
sf-b2b-apex
Build B2B Commerce Apex extensions using the CartExtension namespace — PricingCartCalculator, ShippingCartCalculator, TaxCartCalculator, InventoryCartCalculator implementations, governor limits, bulkification, test coverage (75% minimum), and checkout flow customization. Use when implementing server-side B2B commerce…
sf-integrations
Build Salesforce Commerce integrations — B2C (SCAPI hooks, webhooks, custom script callouts) and B2B (Platform Events, Change Data Capture, outbound messages). Both platforms use event-driven patterns, HMAC verification, idempotency, and retry handling for reliable integration.