typed-schema-demo

typed-schema-demo is a skill for Claude Code, Codex from dcc-mcp/dcc-mcp-core. It costs 55 tokens per session (458 once invoked), scanned A, original, MIT.

A reference showing how Python type annotations and dataclasses can generate JSON input and output schemas automatically. A schema describes the fields and data shapes that a tool accepts and returns.

In plain words
What is it for?
Use it when authoring typed Python handlers whose tool schemas should be published automatically, including output schemas for MCP sessions.
Why use it?
It avoids writing those JSON descriptions by hand and helps clients validate tool data. It also shows how to register the resulting tool with an MCP server, a system that lets applications call tools through a standard protocol.

Skill for Claude CodeCodex

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

Good fit Use it when authoring typed Python handlers whose tool schemas should be published automatically, including output schemas for MCP sessions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dcc-mcp/dcc-mcp-core/typed-schema-demo
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 dcc-mcp/dcc-mcp-core --skill typed-schema-demo
Clone the repo
git clone --depth 1 https://github.com/dcc-mcp/dcc-mcp-core

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 typed-schema-demo

README.md
[![agentmods](https://agentmods.dev/badge/skills/dcc-mcp/dcc-mcp-core/typed-schema-demo/github.svg)](https://agentmods.dev/skills/dcc-mcp/dcc-mcp-core/typed-schema-demo)
Your own site
<a href="https://agentmods.dev/skills/dcc-mcp/dcc-mcp-core/typed-schema-demo"><img src="https://agentmods.dev/badge/skills/dcc-mcp/dcc-mcp-core/typed-schema-demo/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 typed-schema-demo

Your own site · 80×15
<a href="https://agentmods.dev/skills/dcc-mcp/dcc-mcp-core/typed-schema-demo"><img src="https://agentmods.dev/badge/skills/dcc-mcp/dcc-mcp-core/typed-schema-demo.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 458 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00055 $0.00458
Opus 5.5 $0.00022 $0.00183
Sonnet 5.5 $0.00011 $0.00092
Haiku 4.5 $0.00006 $0.00046

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

Security

Grade A, and why

typed-schema-demo 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.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/demo.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

examples/skills/typed-schema-demo/SKILL.md · 55 lines

What it actually says

Typed Schema Demo (issue #242)

This skill demonstrates the dcc_mcp_core.schema helpers landed for issue #242: authors write a typed handler and tool_spec_from_callable derives both inputSchema and outputSchema from the annotations, with no dependency on pydantic, jsonschema, or attrs.

What to look at

  • scripts/demo.py — one handler using a dataclass input and a dataclass output. The derived schemas are structurally compatible with pydantic's model_json_schema() so callers can swap in pydantic later without migrating agents or cached schemas.

How to wire it into a server

The demo module builds a ToolSpec that is ready for dcc_mcp_core._tool_registration.register_tools(server, [spec]). Inside an adapter (e.g. Maya/Blender), register it during bootstrap:

from dcc_mcp_core._tool_registration import register_tools
from typed_schema_demo.scripts.demo import spec

register_tools(server, [spec], dcc_name="python")

When the negotiated MCP session is 2025-06-18, the gateway publishes outputSchema alongside inputSchema so clients can validate the structuredContent payload our handler returns.

Files

What ships with it

2 files 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. 2mo ago Changed · +5 lines fec5bb09547d
  2. 3mo ago First seen · 50 lines · 55 tokens per session scan A 750fa0b466c2

Subscribe to this mod's changes

typed-schema-demo is a skill published in the GitHub repository dcc-mcp/dcc-mcp-core (78 stars, last pushed today), licensed MIT. It adds 55 tokens to every session and 458 once invoked, about $0.0002 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-30.

Related

typed-schema-demo compared with skills from other repositories

typed-schema-demo next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
typed-schema-demodcc-mcp/dcc-mcp-coreSkill78todayMITA55Claude Code, Codex
artclaw-tool-creatorIvanYangYangXi/artclaw_bridgeSkill397mo agoMITA41Claude Code, Codex
sd-node-opsIvanYangYangXi/artclaw_bridgeSkill397mo agoMITA67Claude Code, Codex
houdini-simulationIvanYangYangXi/artclaw_bridgeSkill397mo agoMITA75Claude Code, Codex
blender-contextIvanYangYangXi/artclaw_bridgeSkill397mo agoMITA77Claude Code, Codex
blender-viewport-captureIvanYangYangXi/artclaw_bridgeSkill397mo agoMITA85Claude Code, Codex
comfyui-img2imgIvanYangYangXi/artclaw_bridgeSkill397mo agoMITA64Claude Code, Codex