script-kit-mcp
Model Context Protocol (MCP) implementation for Script Kit. Use when working with MCP server, JSON-RPC 2.0 protocol, kit tools, script tools, resources, or SSE streaming. Triggers on: "mcp", "json-rpc", "kit tools", "script tools", "resources", "sse streaming", "audit logging".
npx skills add majiayu000/claude-skill-registry --skill script-kit-mcp-johnlindquist-script-kit-next --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Script Kit MCP Implementation MCP (Model Context Protocol) enables AI agents to interact with Script Kit via JSON-RPC 2.0. ## Architecture Overview ``` mcp_server.rs HTTP server on localhost:43210 | v mcp_protocol.rs JSON-RPC 2.0 request/response handling | +---> mcp_kit_tools.rs kit/* namespace tools +---> mcp_script_tools.rs scripts/* namespace tools +---> mcp_resources.rs Resource endpoints +---> mcp_streaming.rs SSE streaming & audit logging ``` ## Core Modules ### mcp_protocol.rs - JSON-RPC 2.0 Protocol Handles request parsing, method routing, and response generation. **Supported Methods:** - `initialize` - Returns server capabilities - `tools/list` - Lists all available tools - `tools/call` - Executes a tool - `resources/list` - Lists all resources - `resources/read` - Reads a resource **Key Types:** ```rust pub struct JsonRpcRequest { pub jsonrpc: String, // Must be "2.0" pub id: Value, // Request identifier pub method: String, // Method name pub params: Value, // Optional parameters } pub struct JsonRpcResponse { pub jsonrpc: String, pub id: Value, pub result: Option<Value>, // Success pub error: Option<JsonRpcError>, // Failure } ``` **Error Codes:** - `-32700` PARSE_ERR
- Architecture Overview
- Core Modules
- mcpprotocol.rs - JSON-RPC 2.0 Protocol
- mcpserver.rs - HTTP Server
- mcpkittools.rs - Kit Tools
- mcpscripttools.rs - Script Tools
- mcpresources.rs - Resources
- mcpstreaming.rs - SSE Streaming & Audit
- Usage Patterns
- Adding a New Kit Tool
- Making a Script Callable via MCP
- Adding a New Resource
- Testing
- References
Run MCP tests cargo test mcp_ Run specific module tests cargo test mcp_protocol cargo test mcp_server cargo test mcp_kit_tools cargo test mcp_script_tools cargo test mcp_resources cargo test mcp_streaming
What does the script-kit-mcp skill do?
Model Context Protocol (MCP) implementation for Script Kit. Use when working with MCP server, JSON-RPC 2.0 protocol, kit tools, script tools, resources, or SSE streaming. Triggers on: "mcp", "json-rpc", "kit tools", "script tools", "resources", "sse streaming", "audit logging".
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill script-kit-mcp-johnlindquist-script-kit-next --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
