Skip to content

donaldfilimon/abi / .agents/skills/opencode/plugins/mcp

ABI MCP JSON-RPC server skill for the frozen 12-tool stdio surface and custom loopback HTTP compatibility listener.

FileKindSize
SKILL.mdskill md2.3 KB
---
name: mcp
description: ABI MCP JSON-RPC server skill for the frozen 12-tool stdio surface and custom loopback HTTP compatibility listener.
superpower:
  command: "execute"
  parameters:
    - name: "action"
      type: "string"
      enum: ["serve", "tools", "call", "auth", "health"]
      description: "MCP action"
    - name: "tool"
      type: "string"
      description: "Tool name (ai_complete, wdbx_query, etc.)"
    - name: "args"
      type: "object"
      description: "Tool arguments as JSON"
---

# MCP Superpower Plugin

Core MCP capabilities for OpenCode within the ABI framework.

## Capabilities

- MCP subsystem integration
- Plugin framework registration
- Runtime lifecycle management
- Configuration and settings management
- Status monitoring and reporting

## Integration Points

- ABI's MCP subsystem integration
- OpenCode plugin framework integration
- Runtime lifecycle management
- Configuration and settings management

## Actions

### serve
Start MCP server on stdio:
```
./mcp/launcher.sh stdio
```

### tools
List all 12 frozen tools:
```bash
printf '%s\n' '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}' | ./target/debug/abi-mcp
```

### call
Invoke a tool with arguments:
```bash
printf '%s\n' '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"ai_complete","arguments":{"input":"hello"}}}' | ./target/debug/abi-mcp
```

### auth
Configure the optional HTTP bearer token with `ABI_MCP_HTTP_TOKEN` before
launch. Stdio stays tokenless.

### health
There is no dedicated health command; send a JSON-RPC `ping` or `initialize`
request over stdio.

## Frozen Tool Surface (12 tools)

ai_run, ai_complete, ai_learn, ai_train, wdbx_query, scheduler_stats, scheduler_info, connector_test, gpu_status, plugin_list, wdbx_stats, plugin_run

## Implementation

Maps to:
- `crates/abi-mcp/src/main.rs` - JSON-RPC 2.0 server
- `crates/abi-mcp/src/handlers.rs` - 12 tool implementations
- `crates/abi-mcp/src/http.rs` - Custom loopback HTTP compatibility path

## Build and protocol boundary

All twelve handlers are built into `abi-mcp`; the historical `feat-*` switches
do not exist in this Rust workspace. The loopback listener is attempted at
startup, bind failure leaves stdio running, and `GET /sse` opens a persistent
MCP 2024-11-05 HTTP+SSE session (not Streamable HTTP); `POST /message` without
a session keeps the one-shot direct-reply mode.
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: 472kUpdated Claude CodeCodexVerifiedInstall
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: 323kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 323kUpdated Claude CodeCodexVerifiedInstall
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 availableStars: 323kUpdated Claude CodeCodexVerifiedInstall