cratis-arc-expose-mcp-operation

cratis-arc-expose-mcp-operation is a skill for Claude Code, Codex from Cratis/AI. It costs 47 tokens per session (1,449 once invoked), scanned A, original, MIT.

A guide for exposing an Arc command or one-result query as an MCP tool. MCP is a protocol that lets compatible AI clients call tools provided by an application.

In plain words
What is it for?
Use it to publish approved reads or writes as MCP tools, configure personal access tokens and caller lookup, and enable the MCP endpoint.
Why use it?
It explains the host, caller verification, permissions, and separate capabilities endpoint needed before an MCP client can safely invoke the operation.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to publish approved reads or writes as MCP tools, configure personal access tokens and caller lookup, and enable the MCP endpoint.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cratis/ai/cratis-arc-expose-mcp-operation
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Cratis/AI --skill cratis-arc-expose-mcp-operation
Clone the repo
git clone --depth 1 https://github.com/Cratis/AI

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for cratis-arc-expose-mcp-operation

README.md
[![agentmods](https://agentmods.dev/badge/skills/cratis/ai/cratis-arc-expose-mcp-operation/github.svg)](https://agentmods.dev/skills/cratis/ai/cratis-arc-expose-mcp-operation)
Your own site
<a href="https://agentmods.dev/skills/cratis/ai/cratis-arc-expose-mcp-operation"><img src="https://agentmods.dev/badge/skills/cratis/ai/cratis-arc-expose-mcp-operation/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.

agentmods 80×15 button for cratis-arc-expose-mcp-operation

Your own site · 80×15
<a href="https://agentmods.dev/skills/cratis/ai/cratis-arc-expose-mcp-operation"><img src="https://agentmods.dev/badge/skills/cratis/ai/cratis-arc-expose-mcp-operation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,449 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00047 $0.01449
Opus 5.5 $0.00019 $0.00580
Sonnet 5.5 $0.00009 $0.00290
Haiku 4.5 $0.00005 $0.00145

Measured today against content hash def625d9adc2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cratis-arc-expose-mcp-operation scanned grade A with 1 finding 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 today.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

With both tools configured and a client PAT issued for `catalog:read` only, list tools on the capabilities listener. Load `PAT` privately into the shell with tracing disabled. Pass the header through stdin rather than pu
.cratis/ai/skills/cratis-arc-expose-mcp-operation/SKILL.md · 86 lines

How it starts

The opening of the file, as written. The whole thing — 86 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Expose an author operation as an MCP tool

Start with a finite read. Expose a write only if the verified caller is allowed to make that change without a separate approval.

Prepare the host

Add explicit package references to the host project for Cratis.Arc.Mcp and Cratis.Arc.PersonalAccessTokens. Neither comes with Cratis or Cratis.Arc.

Existing verified host: extend its PAT scopes and tool catalog on the same Arc builder. Do not install a second verifier. The example below shows the resulting configuration for an Arc-only receiver. It assumes a LibraryPersonDirectory implementing Cratis.Arc.Identity.Callers.ICallerPersonDirectory that resolves verified account keys to persisted person records.

using Cratis.Arc;
using Library.Identity;
using Cratis.Arc.Mcp;
using Cratis.Arc.PersonalAccessTokens;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;

var builder = WebApplication.CreateBuilder(args);
builder.WebHost.UseUrls("http://127.0.0.1:5000", "http://127.0.0.1:5002");
builder.AddCratisArc(options => options.EndpointGroups.Assign("capabilities", 5002),
    configureBuilder: arc => arc.WithCapabilities()
    .WithPersonalAccessTokens(new PatOptions("direct") { AllowedScopes = ["catalog:read", "catalog:write"] },
        callers => callers.ForResource("urn:catalog", "catalog-mcp", "development").UsePersonDirectory<LibraryPersonDirectory>())
    .WithMcp(mcp => mcp.Configure(options => options.ApplicationName = "catalog")));
var app = builder.Build();
app.UseCratisArc();
app.MapArcMcp();
await app.RunAsync();

direct is the PAT format key. ForResource binds the receiver to its resource URI, credential audience and deployment environment. Match all three to the token issuer. Keep the application's durable IPatAuthority, IPatRecoveryEpoch and IPatPolicy registrations.

Fresh local host: start with the MCP quick start’s local development adapters. In Development only, import Cratis.Arc.PersonalAccessTokens.Development and call UseDevelopmentPersonalAccessTokenAdapters() after WithPersonalAccessTokens(...) to supply those three adapters in memory, not a person directory or an issuance endpoint. Issuance still needs a verified browser caller. When issuance and PAT verification share a receiver, configure signed v2 forwarding and call AllowPersonalAccessTokenCallers() inside the same WithPersonalAccessTokens delegate. Without a verified browser caller, exercise issuance in an isolated spec with a test-only verified caller and signing key. Never install the test signer or key in the application host.

Read the full file on GitHub · 86 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

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.

  1. today Changed · +12 lines def625d9adc2
  2. 2d ago First seen · 74 lines · 47 tokens per session scan A 8c902e3043bf

Subscribe to this mod's changes

cratis-arc-expose-mcp-operation is a skill published in the GitHub repository Cratis/AI (4 stars, last pushed today), licensed MIT. It adds 47 tokens to every session and 1,449 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-27.

Related

cratis-arc-expose-mcp-operation compared with skills from other repositories

cratis-arc-expose-mcp-operation next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cratis-arc-expose-mcp-operationCratis/AISkill4todayMITA47Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill330k2d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill14kyesterdayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code