Metadata-Version: 2.4
Name: anything2mcp
Version: 0.1.0
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Rust
Classifier: Typing :: Typed
License-File: LICENSE
License-File: THIRD-PARTY-NOTICES.txt
Summary: Turn existing software and systems into deterministic, verified MCP tools: the anything2mcp program and a thin Python client of its local engine.
License-Expression: MIT
Requires-Python: >=3.9
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Changelog, https://github.com/MHughesDev/anything2mcp/blob/main/CHANGELOG.md
Project-URL: Issues, https://github.com/MHughesDev/anything2mcp/issues
Project-URL: Repository, https://github.com/MHughesDev/anything2mcp

# anything2mcp

<!-- Generated from the repository's README.md by tools/package_pages.py: do not edit between these markers. -->

Anything2MCP is an MCP server that gives your AI agent the tools to build MCP tools over the software and systems you already have access to: web applications, HTTP APIs, command-line programs, databases, files, and other MCP servers. Your agent explores the system and drafts the tools; Anything2MCP tests them, serves them to any MCP client, and runs them the same way every time. Nothing goes live, and nothing changes your data, until you approve it.

## Use it from your agent

Anything2MCP is one MCP server: it serves the building tools to your agent, and then serves the tools your agent builds. This flow runs end to end in CI as `crates/anything2mcp/tests/quickstart.rs`.

1. **Install and connect.** `pip install anything2mcp` (or run it with `uvx anything2mcp`). In a folder for your tools, `anything2mcp init` makes a project, and `anything2mcp connect claude-code --toolset agent` adds it to your agent. Profiles ship for `claude-code`, `cursor`, `codex`, `claude-desktop`, and `vscode`; `--print` shows the entry for any other client. In Claude Code you can instead install the plugin, which adds four skills (wrap a system, add a write, fix drift, use published tools): `/plugin marketplace add MHughesDev/anything2mcp`, then `/plugin install anything2mcp@anything2mcp`; it starts the server with `npx`, so it needs the npm package. Other clients: [agent/](https://github.com/MHughesDev/anything2mcp/blob/main/agent/README.md).
2. **Ask your agent** to wrap a system: "Use anything2mcp to make tools for the order system at http://127.0.0.1:4010". To try this safely, run the built-in test application, `example-app` (see [Try it from source](https://github.com/MHughesDev/anything2mcp#try-it-from-source)).
3. **The agent explores, drafts, and tests.** It wraps the system (`a2m_target_wrap`), reads what was found (`a2m_scout_report`), tries reads (`a2m_draft_try`), and prepares them for publishing (`a2m_draft_ready`), which hands you a link.
4. **You review and approve.** The link opens a page on your machine that shows exactly what will be published. You approve with your operating system's prompt.
5. **Your agent uses the new tools.** With `--toolset agent` they are listed by name; it can always find and call them with `a2m_tool_search` and `a2m_tool_call`, including tools published after it connected.

A client without the plugin gets the same guidance from the server itself, through its instructions and four prompts: `wrap_a_system`, `add_a_write`, `fix_drift`, and `use_published_tools`.

<!-- End of the part generated from README.md. -->

## The package

The project lives at <https://github.com/MHughesDev/anything2mcp>, where you will find the documentation, the roadmap, and how to report a problem.

`pip install anything2mcp` gives two things:

- The `anything2mcp` program, with `a2m` as a short name for it. The wheel carries the prebuilt binary for your platform; no Rust toolchain is needed.
- `import anything2mcp`: a thin client of the local engine, using only the standard library.

The client is a preview in the first release. Its documented surface is five calls:

```python
import anything2mcp

with anything2mcp.connect(project=".") as client:
    found = client.tool_search(query="order")                      # find a published tool
    run = client.tool_call(tool="example_api_orders_get", input={"order_id": "A-100"})
    run = client.run_get(run_id="<run id from the answer>")            # get a run
    client.run_resume(run_id="<run id>")                               # resume a stopped run
    client.run_cancel(run_id="<run id>")                               # cancel one
```

Each answer is the engine's `Response`: `ok`, `exit_class`, `result`, and `next`. These five are the client's only typed methods. Any other action the engine serves is reached with `client.call(action, input)`, such as `client.call("engine.status", {})`; that is not part of what the preview promises, and may change.

When no engine runs, `connect` has the program this wheel installed start one, by running `anything2mcp engine start` as any command would, and then connects to it; `connect(start=False)` starts nothing and raises `engine_unreachable`. It reaches the engine on macOS and Linux by its socket, and on Windows by its named pipe. On Windows it checks that the process serving the pipe runs as you before it sends anything, and a read has no timeout there.

Most people do not need the client: an agent uses the program through MCP (`anything2mcp stdio`), started by the agent plugin or by `uvx anything2mcp stdio`.

Licensed under the MIT licence.

