x402agent/SolanaOS / skills/openclaw-claude-code-skill-main
claude-code-skill
VerifiedControl Claude Code via MCP protocol. Trigger with "plan" to write a precise execution plan then feed it to Claude Code. Also supports direct commands, persistent sessions, agent teams, and advanced tool control.
| File | Kind | Size |
|---|---|---|
| .gitignore | other | 277 B |
| LICENSE | other | 1.0 KB |
| README.md | markdown | 13.9 KB |
| SKILL.md | skill md | 16.0 KB |
| examples/basic-mcp.ts | script | 1.4 KB |
| examples/chat-store.ts | script | 3.6 KB |
| mcp_config.example.json | config | 648 B |
| package-lock.json | manifest | 20.9 KB |
| package.json | manifest | 679 B |
| src/index.ts | script | 35.3 KB |
| src/mcp/actions.ts | script | 9.4 KB |
| src/mcp/client.ts | script | 1.4 KB |
| src/mcp/index.ts | script | 189 B |
| src/mcp/logger.ts | script | 1.2 KB |
| src/mcp/types.ts | script | 3.2 KB |
| src/mcp/utils.ts | script | 477 B |
| src/store/index.ts | script | 148 B |
| src/store/indexeddb-storage.ts | script | 1.6 KB |
| src/store/persist.ts | script | 2.2 KB |
| src/store/sync.ts | script | 3.1 KB |
| tsconfig.json | config | 399 B |
src/mcp/types.ts
View on GitHub/**
* MCP (Model Context Protocol) Type Definitions
* Reference: https://spec.modelcontextprotocol.io/specification/basic/messages/
*/
import { z } from "zod";
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
// MCP Request Message
export interface McpRequestMessage {
jsonrpc?: "2.0";
id?: string | number;
method: "tools/call" | string;
params?: {
[key: string]: unknown;
};
}
export const McpRequestMessageSchema: z.ZodType<McpRequestMessage> = z.object({
jsonrpc: z.literal("2.0").optional(),
id: z.union([z.string(), z.number()]).optional(),
method: z.string(),
params: z.record(z.unknown()).optional(),
});
// MCP Response Message
export interface McpResponseMessage {
jsonrpc?: "2.0";
id?: string | number;
result?: {
[key: string]: unknown;
};
error?: {
code: number;
message: string;
data?: unknown;
};
}
export const McpResponseMessageSchema: z.ZodType<McpResponseMessage> = z.object(
{
jsonrpc: z.literal("2.0").optional(),
id: z.union([z.string(), z.number()]).optional(),
result: z.record(z.unknown()).optional(),
error: z
.object({
code: z.number(),
message: z.string(),
data: z.unknown().optional(),
})
.optional(),
},
);
// MCP Notifications
export interface McpNotifications {
jsonrpc?: "2.0";
method: string;
params?: {
[key: string]: unknown;
};
}
export const McpNotificationsSchema: z.ZodType<McpNotifications> = z.object({
jsonrpc: z.literal("2.0").optional(),
method: z.string(),
params: z.record(z.unknown()).optional(),
});
// List Tools Response
export interface ListToolsResponse {
tools: {
name?: string;
description?: string;
inputSchema?: object;
[key: string]: any;
};
}
// MCP Client Data States
export type McpClientData =
| McpActiveClient
| McpErrorClient
| McpInitializingClient;
interface McpInitializingClient {
client: null;
tools: null;
errorMsg: null;
}
interface McpActiveClient {
client: Client;
tools: ListToolsResponse;
errorMsg: null;
}
interface McpErrorClient {
client: null;
tools: null;
errorMsg: string;
}
// Server Status Types
export type ServerStatus =
| "undefined"
| "active"
| "paused"
| "error"
| "initializing";
export interface ServerStatusResponse {
status: ServerStatus;
errorMsg: string | null;
}
// MCP Server Configuration
export interface ServerConfig {
command: string;
args: string[];
env?: Record<string, string>;
status?: "active" | "paused" | "error";
}
export interface McpConfigData {
mcpServers: Record<string, ServerConfig>;
}
export const DEFAULT_MCP_CONFIG: McpConfigData = {
mcpServers: {},
};
// Arguments Mapping for Preset Servers
export interface ArgsMapping {
type: "spread" | "single" | "env";
position?: number;
key?: string;
}
// Preset Server Configuration
export interface PresetServer {
id: string;
name: string;
description: string;
repo: string;
tags: string[];
command: string;
baseArgs: string[];
configurable: boolean;
configSchema?: {
properties: Record<
string,
{
type: string;
description?: string;
required?: boolean;
minItems?: number;
}
>;
};
argsMapping?: Record<string, ArgsMapping>;
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |