Skip to content

Solizardking/clawd-bot / agent/skills/clawd-code-skill

clawd-code-skill

Verified

Control Clawd Code via MCP protocol. Trigger with "plan" to write a precise execution plan then feed it to Clawd Code. Also supports direct commands, persistent sessions, agent teams, and advanced tool control.

FileKindSize
LICENSEother1.0 KB
README.mdmarkdown13.8 KB
SKILL.mdskill md15.5 KB
examples/basic-mcp.tsscript1.4 KB
examples/chat-store.tsscript3.6 KB
mcp_config.example.jsonconfig648 B
package-lock.jsonmanifest20.9 KB
package.jsonmanifest674 B
src/index.tsscript35.2 KB
src/mcp/actions.tsscript9.4 KB
src/mcp/client.tsscript1.4 KB
src/mcp/index.tsscript189 B
src/mcp/logger.tsscript1.2 KB
src/mcp/types.tsscript3.2 KB
src/mcp/utils.tsscript477 B
src/store/index.tsscript148 B
src/store/indexeddb-storage.tsscript1.6 KB
src/store/persist.tsscript2.2 KB
src/store/sync.tsscript3.1 KB
tsconfig.jsonconfig399 B

examples/basic-mcp.ts

View on GitHub
/**
 * Basic MCP Setup Example
 *
 * This example shows how to initialize and use MCP servers
 * with the solanaos-clawd-code-skill package.
 */

import {
  initializeMcpSystem,
  addMcpServer,
  executeMcpAction,
  getAllTools,
  getClientsStatus,
  setConfigPath,
} from "../src";

async function main() {
  // Optional: Set a custom config path
  setConfigPath("./mcp_config.json");

  // Initialize the MCP system
  console.log("Initializing MCP system...");
  await initializeMcpSystem();

  // Add a filesystem server
  console.log("Adding filesystem server...");
  await addMcpServer("filesystem", {
    command: "npx",
    args: ["-y", "@modelcontextprotocol/server-filesystem", "./"],
  });

  // Wait for initialization
  await new Promise((resolve) => setTimeout(resolve, 2000));

  // Check status
  const status = await getClientsStatus();
  console.log("Server status:", status);

  // Get all available tools
  const tools = await getAllTools();
  console.log("Available tools:", JSON.stringify(tools, null, 2));

  // Execute a tool call (list directory)
  try {
    const result = await executeMcpAction("filesystem", {
      method: "tools/call",
      params: {
        name: "list_directory",
        arguments: { path: "./" },
      },
    });
    console.log("Directory listing:", result);
  } catch (error) {
    console.error("Error executing tool:", error);
  }
}

main().catch(console.error);
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: 465kUpdated Claude CodeCodexUnverifiedInstall
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: 465kUpdated Claude CodeCodexUnverifiedInstall
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: 318kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 318kUpdated Claude CodeCodexVerifiedInstall