Skip to content

About

Discover app interfaces, build reusable agent connectors, and verify real operations. A portable skill with CLI and stdio MCP helpers.

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Connect Anything

Give your AI agent an unfamiliar app. Keep a working connector.

简体中文 · Installation · Executable workflow

Connect Anything is an agent skill for discovering an application's usable interfaces, building reusable tools, and checking that a real task succeeded. It covers desktop, web, SaaS, mobile and remote application workflows.

Version 0.5.1 makes programmatic-only, host-independent execution explicit. The 0.5 runtime adds an executable Electron internal-interface route: discover shipped preload code, generate a pinned private job, run the real app in an owned isolated profile, verify the saved result and reopen it from a new agent context. The same lifecycle retains semantic acceptance, a local registry and durable handling of uncertain writes. The agent reviews interfaces and supplies task-specific jobs.

Application + task
       ↓
Discover an interface → build a connector → perform the task → verify → reuse

The skill helps the agent choose among existing MCP tools, APIs, CLIs, internal bridges, native IPC/FFI, plugins and scoped reverse engineering. Connections are established for the application and operations you select.

The skill is AI-host independent: any agent with a suitable execution or network tool can use its Markdown instructions and JSON entry points. Desktop automation, screen recognition and simulated input are outside its connection/acceptance routes. MCP and native skill menus are optional; see host portability.

Install

With Node.js and an agent supported by the Skills CLI:

npx skills add whichow/connect-anything --skill connect-anything

Choose your agent when prompted. To install for all projects, add --global. For an explicit agent and scope:

npx skills add whichow/connect-anything --skill connect-anything --agent codex --global

No Node.js? Download a release, extract the skill folder, and copy it into the skills directory supported by your agent. See installation and updates, including Claude Code, project installs, manual installation and removal.

Use it

Start a new agent session after installation, then ask:

Use $connect-anything to connect this desktop application. Export the selected document, verify the result in the application, and save a reusable connector.

Use $connect-anything to connect this service through its API or intended application bridge, read the selected records, and preserve the integration.

Use $connect-anything to repair this integration after an application update. Verify the operations that still work and update the connector.

Name the application, device/account when relevant, and the action you need. Other agents may use a different skill invocation syntax; asking them to use Connect Anything or read its SKILL.md also works when their host permits it.

Run the whole lifecycle

Ask the agent to discover the selected application, generate a narrow operation, write a meaningful acceptance case, verify it, save the bundle and reuse it from a fresh process. The commands behind that workflow are executable:

python skills/connect-anything/scripts/workflow.py discover --target /path/to/app --help-args '["--help"]' --out local/discovery.json
python skills/connect-anything/scripts/workflow.py generate --discovery local/discovery.json --recipe local/recipe.json --out local/bundle
python skills/connect-anything/scripts/workflow.py verify --bundle local/bundle --case local/case.json --allow-writes
python skills/connect-anything/scripts/workflow.py save --bundle local/bundle --registry local/registry
python skills/connect-anything/scripts/workflow.py run --registry local/registry --name my-connector --operation export_document --args-file local/arguments.json --allow-writes

The agent derives recipe.json, case.json and the operation name from observed interfaces and your task; these are not prebuilt product adapters. Supported flat OpenAPI operations can be compiled directly with --select, without a recipe. See the workflow guide for exact inputs, assertions, local registry use and reconciliation.

Only semantically verified operations can be saved and exposed by the managed MCP server. Changed evidence invalidates reuse. A pending or uncertain write blocks new writes until independent readback is recorded; reconciliation never replays the original action.

What is included

Component Purpose
SKILL.md Discover interfaces, choose a route, implement and verify operations
Route guides Desktop, website/SaaS, mobile, remote and file workflows
probe.py Inspect an explicit artifact or classify a URL without executing it
workflow.py Execute discovery, generation, verification, saved reuse and reconciliation
discovery.py Capture native help/options, bounded Electron bridge evidence and selected OpenAPI JSON
verification.py Check independent readbacks and text, JSON, PNG, ZIP and byte artifacts
connect.py Call named operations through command, JSON HTTP or Electron transports
electron.py Run pinned renderer jobs in an owned isolated Electron process
Managed MCP Expose verified saved operations with binding and write-journal checks
demo.py Exercise the entire lifecycle plus fresh CLI/MCP reuse against a temporary fixture

This distribution is application-neutral. Connectors generated for your targets stay in your workspace. It contains no product adapters, private account setup, device inventory, captured traffic or local acceptance records.

Try the runtime

The helpers require Python 3.10+. CLI/HTTP and the demo use the standard library. The optional Electron internal route requires websockets and psutil; install its pinned requirements only when needed:

python -m pip install -r skills/connect-anything/scripts/requirements-electron.txt

From a source checkout:

git clone https://github.com/whichow/connect-anything.git
cd connect-anything
python skills/connect-anything/scripts/demo.py
python -m unittest discover -s tests -v

Use python3 if that is your Python 3 launcher. The demo creates a temporary loopback HTTP service, discovers its schema, compiles operations, performs semantic verification, saves a bundle and reuses it from fresh CLI and MCP processes. Its JSON result reports the checks that passed. It does not connect to a personal account or claim support for a particular app.

To create a profile for an observed interface:

python skills/connect-anything/scripts/connect.py init --name my-app --out my-app.json

This lower-level command creates an empty profile. The lifecycle generator above produces evidence-bound bundles instead. Raw profiles support inspect, call or serve. See the operation contract for parameters, environment-based authentication, write settings and MCP setup.

Requirements and boundaries

  • The AI needs an execution/network tool and an authorized reachable host for the target. No specific AI client, desktop tool or browser agent is required. A text-only model without tools can review instructions but cannot execute them.
  • Command, JSON HTTP and owned-instance Electron internal execution are implemented. Other native/mobile protocols require a suitable SDK, service or generated adapter. If no authorized programmatic interface works, that operation remains unsupported. Support is verified per operation, version and environment.
  • Optional MCP exposure lets an AI client discover and call saved verified tools through local process communication. Protocol details and registration remain in the operation contract; compatibility with every host is not established.
  • Native help and a constrained OpenAPI schema subset have executable discovery and compilation. Broader interpretation, custom scripting, authentication and other interface types still require the agent and appropriate host tools.
  • Profiles are trusted executable configuration. Writes need an explicitly enabled session; uncertain mutations are never retried automatically.
  • An exit code or HTTP 200 is transport evidence. Acceptance requires checking the requested result in the application or its saved artifact.

See validation scope for reproducible checks and limits.

Contribute

Improve generic discovery, operation contracts, failure handling or portable tests. Keep application-specific adapters and private configuration outside this repository. See CONTRIBUTING.md.

MIT License.

About

Discover app interfaces, build reusable agent connectors, and verify real operations. A portable skill with CLI and stdio MCP helpers.

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages