### Run SOAP demo end to end Source: https://github.com/bvenkata/legacy2mcp/blob/main/examples/README.md Install the package and start the demo SOAP service, then inspect the generated tools. ```bash pip install -e ".[dev]" # terminal 1 - start the demo SOAP service python examples/soap/run_mock_calculator.py # terminal 2 - discover the tools generated from its WSDL legacy2mcp inspect --config examples/soap/config.calculator.yaml ``` -------------------------------- ### Run legacy2mcp init interactively Source: https://github.com/bvenkata/legacy2mcp/blob/main/README.md Starts the interactive setup wizard, which prompts for the target type (WSDL URL, REST API URL, website, or GitHub repo/local path) and writes a starting config.yaml. The displayed output shows the interactive menu choices. ```bash legacy2mcp init ``` ```text What do you want to point legacy2mcp at? 1) WSDL URL (SOAP service) 2) REST API URL (tries OpenAPI/Swagger discovery) 3) A website with no API docs at all (crawls it for forms/content) 4) GitHub repo URL or a local path to its source code Choice [1-4]: ``` -------------------------------- ### Development setup commands Source: https://github.com/bvenkata/legacy2mcp/blob/main/CONTRIBUTING.md Clone the repository, install with dev extras, and run the test suite. The [dev] extra installs pytest, pytest-asyncio, flask, and lxml. Tests run against in-process mocks, requiring no external services. ```bash git clone https://github.com/bvenkata/legacy2mcp.git cd legacy2mcp pip install -e ".[dev]" pytest tests/ -v ``` -------------------------------- ### Run SOAP demo with Docker Source: https://github.com/bvenkata/legacy2mcp/blob/main/examples/README.md Start the demo SOAP service via Docker Compose and run legacy2mcp inspect inside a container. ```bash docker compose up demo-soap-service -d docker compose run --rm legacy2mcp legacy2mcp inspect \ --config examples/soap/config.calculator.docker.yaml ``` -------------------------------- ### Set up SOAP Orders demo locally Source: https://github.com/bvenkata/legacy2mcp/blob/main/docs/clients.md Clones the repo, installs dev dependencies, and starts a local mock Orders service on http://127.0.0.1:8124/orders. Provides orders_GetOrder, orders_ListOrders, and orders_GetInventory; CreateOrder and CancelOrder stay hidden until allow_write_operations is true. ```bash git clone https://github.com/bvenkata/legacy2mcp.git && cd legacy2mcp ``` ```bash pip install -e ".[dev]" ``` ```bash python examples/soap/mock_orders_service.py & # http://127.0.0.1:8124/orders ``` -------------------------------- ### Install development dependencies and run tests Source: https://github.com/bvenkata/legacy2mcp/blob/main/README.md Install the package with development dependencies and run the test suite. Tests use an in-process mock SOAP service and SQLite-backed stand-in for the DB adapter, requiring no network or real database instances. ```bash pip install -e ".[dev]" pytest tests/ -v ``` -------------------------------- ### Install and initialize legacy2mcp for REST, WSDL, and webpage targets Source: https://github.com/bvenkata/legacy2mcp/blob/main/README.md Install the package and run one of three init commands against live public demo targets. Each command writes config.yaml, opens a local test-chat page, and prints a connection snippet for AI clients. No API key is required. ```bash pip install legacy2mcp ``` ```bash # REST API -- tries OpenAPI/Swagger discovery legacy2mcp init --rest-url "https://petstore3.swagger.io/api/v3" ``` ```bash # WSDL / SOAP service -- zeep introspects it live, no scan needed legacy2mcp init --wsdl-url "http://www.dneonline.com/calculator.asmx?WSDL" ``` ```bash # A website with no API docs at all -- crawls it for forms/content legacy2mcp init --webpage-url "https://legacy2mcp.com/" ``` -------------------------------- ### Install legacy2mcp with pip Source: https://github.com/bvenkata/legacy2mcp/blob/main/README.md Install the package. The full install with the [ai] extra is recommended, though the core package is identical and scan-only ready. AI-assisted init requires an API key at runtime. ```bash # Full install (recommended) pip install "legacy2mcp[ai]" # Or the identical, scan-only-ready core -- AI-assisted `legacy2mcp init` # needs no extra package either way, just an API key at runtime; `[ai]` # above installs nothing extra today, it's just a stable, familiar name pip install legacy2mcp # or: uv tool install legacy2mcp · pipx install legacy2mcp ``` -------------------------------- ### Initialize config for REST API Source: https://github.com/bvenkata/legacy2mcp/blob/main/examples/README.md Use legacy2mcp init to generate a starting config for a REST API, then inspect it. The init command can also target WSDL URLs, GitHub repos, or local paths. ```bash legacy2mcp init --rest-url https://api.example.com --out config.yaml # or: --wsdl-url ... / --github-url ... --scan-only (skip AI assist) # review config.yaml -- especially base_url, auth, and any TODOs it left legacy2mcp inspect --config config.yaml ``` -------------------------------- ### Install VHS and record demo Source: https://github.com/bvenkata/legacy2mcp/blob/main/demo/README.md Install VHS (pulls in ttyd and ffmpeg) and record the demo as GIF and MP4 from the repo root. Requires the package to be importable, e.g., via `pip install -e ".[dev]"` or the repo's ./.venv. ```bash brew install vhs # one-time (pulls in ttyd + ffmpeg) # from the repo root, with the package importable pip install -e ".[dev]" # or rely on this repo's ./.venv vhs demo/demo.tape ``` -------------------------------- ### Initialize or demo from an existing contract Source: https://github.com/bvenkata/legacy2mcp/blob/main/README.md Use these commands to build a config or start a demo server from an existing contract.yaml. init --from-contract generates config.yaml; demo --from-contract starts a server, saves chat.html, and prints client JSON. demo requires the command to keep running (Ctrl+C to stop) for the page to work. ```bash legacy2mcp init --from-contract contract.yaml --out config.yaml ``` ```bash legacy2mcp demo --from-contract contract.yaml ``` -------------------------------- ### Install and run legacy2mcp CLI commands Source: https://github.com/bvenkata/legacy2mcp/blob/main/llms.txt Install the legacy2mcp package via pip, then use the init, inspect, and run commands to generate a config from a REST URL (or WSDL/GitHub URL), review the generated tools, and start the MCP server over stdio. ```bash pip install legacy2mcp legacy2mcp init --rest-url "https://your-api.example.com" --out config.yaml # or --wsdl-url / --github-url legacy2mcp inspect --config config.yaml # review the generated tools legacy2mcp run --config config.yaml # start the MCP server (stdio) ``` -------------------------------- ### Inspect and run the generated MCP server Source: https://github.com/bvenkata/legacy2mcp/blob/main/README.md After reviewing the generated config, inspect the tools it exposes and then start the MCP server. The inspect command is for review; run starts the server. ```bash legacy2mcp inspect --config config.yaml # review the generated tools ``` ```bash legacy2mcp run --config config.yaml # start the MCP server ``` -------------------------------- ### Install legacy2mcp with database adapter Source: https://github.com/bvenkata/legacy2mcp/blob/main/README.md Install the package with the PostgreSQL adapter. Replace 'db-postgres' with 'db-mssql' or 'db-oracle' for other databases. ```bash pip install "legacy2mcp[db-postgres]" # or db-mssql / db-oracle ``` -------------------------------- ### Install legacy2mcp Source: https://github.com/bvenkata/legacy2mcp/blob/main/skill/legacy2mcp/SKILL.md Install the legacy2mcp package via pip. Confirm the installation with `legacy2mcp --help` or `pip show legacy2mcp` if there is any doubt. ```bash pip install legacy2mcp ``` -------------------------------- ### Run demo without recording Source: https://github.com/bvenkata/legacy2mcp/blob/main/demo/README.md Starts the bundled mock SOAP service, runs the same commands as the recorded demo, and cleans up afterward. ```bash ./demo/demo.sh ``` -------------------------------- ### Install and run legacy2mcp with uvx Source: https://github.com/bvenkata/legacy2mcp/blob/main/docs/registry-submissions.md Command to install and run legacy2mcp using uvx with a config file. Used in registry and awesome-list submissions. ```bash uvx legacy2mcp run --config config.yaml ``` -------------------------------- ### Print legacy2mcp version Source: https://github.com/bvenkata/legacy2mcp/blob/main/README.md Displays the installed legacy2mcp version. ```bash legacy2mcp --version ``` -------------------------------- ### Inspect WSDL by URL without cloning Source: https://github.com/bvenkata/legacy2mcp/blob/main/examples/README.md Download the public WSDL config and inspect it directly from the raw GitHub URL. Tools can be listed but not called because the WSDL's bound address is local. ```bash curl -O https://raw.githubusercontent.com/bvenkata/legacy2mcp/main/examples/soap/config.orders.public-wsdl.yaml legacy2mcp inspect --config config.orders.public-wsdl.yaml ``` -------------------------------- ### Install legacy2mcp skill for AI coding agents Source: https://github.com/bvenkata/legacy2mcp/blob/main/README.md Run this command to write legacy2mcp instructions into the current repo's agent context files, including a Claude Code slash command, a Cursor rule, and sections in AGENTS.md, GEMINI.md, and .github/copilot-instructions.md. It is idempotent and safe to re-run after upgrades. ```bash legacy2mcp install-skill ``` -------------------------------- ### Inspect discovered tools Source: https://github.com/bvenkata/legacy2mcp/blob/main/AGENTS.md See the real discovered tools before trusting anything; no server is started. ```bash legacy2mcp inspect --config config.yaml ``` -------------------------------- ### Record with asciinema Source: https://github.com/bvenkata/legacy2mcp/blob/main/demo/README.md Alternative to VHS: record the demo as a .cast file and optionally upload it to asciinema for web playback. Requires asciinema to be installed. ```bash brew install asciinema asciinema rec demo/legacy2mcp.cast -c './demo/demo.sh' asciinema upload demo/legacy2mcp.cast # or embed the .cast with asciinema-player ``` -------------------------------- ### Run MCP server Source: https://github.com/bvenkata/legacy2mcp/blob/main/AGENTS.md Start the MCP server. An MCP client normally launches this itself; running by hand just blocks waiting for a client over stdio. ```bash legacy2mcp run --config config.yaml ``` -------------------------------- ### Set password and run legacy2mcp inspect/run commands Source: https://github.com/bvenkata/legacy2mcp/blob/main/README.md Exports the SERVICE_PASSWORD environment variable, then reviews the generated tools with legacy2mcp inspect and starts the MCP server (stdio) with legacy2mcp run. Both commands use the same config.yaml file. ```bash export SERVICE_PASSWORD=... legacy2mcp inspect --config config.yaml # review the generated tools legacy2mcp run --config config.yaml # start the MCP server (stdio) ``` -------------------------------- ### Scan GitHub repo or local codebase Source: https://github.com/bvenkata/legacy2mcp/blob/main/AGENTS.md Scan a GitHub repo or local codebase for a SOAP client, ORM model, or routes. Use --scan-only to avoid starting a server. ```bash legacy2mcp init --github-url https://github.com/you/your-api --scan-only --out config.yaml ``` ```bash legacy2mcp init --local-path ./path/to/repo --scan-only --out config.yaml ``` -------------------------------- ### Demo config or contract in chat page Source: https://github.com/bvenkata/legacy2mcp/blob/main/README.md Tries a config or contract in a chat page immediately, without a separate init step. ```bash legacy2mcp demo --from-contract contract.yaml ``` ```bash legacy2mcp demo --config config.yaml ``` -------------------------------- ### Download Petstore REST config Source: https://github.com/bvenkata/legacy2mcp/blob/main/docs/clients.md Downloads the public Swagger Petstore config for a zero-setup demo. No credentials needed; provides four read tools and hides delete_pet because it is a write. ```bash curl -O https://raw.githubusercontent.com/bvenkata/legacy2mcp/main/examples/rest/config.petstore.yaml ``` -------------------------------- ### Run legacy2mcp init non-interactively with --github-url and --scan-only Source: https://github.com/bvenkata/legacy2mcp/blob/main/README.md Non-interactive init for a GitHub repo or local path, using static analysis only (skips the optional LLM refinement). Writes the generated config to config.yaml. ```bash legacy2mcp init --github-url https://github.com/you/your-api --scan-only --out config.yaml ``` -------------------------------- ### Initialize from live WSDL Source: https://github.com/bvenkata/legacy2mcp/blob/main/AGENTS.md Point at a live WSDL; no API key needed, zeep introspects it live. ```bash legacy2mcp init --wsdl-url "https://service.example.com/Legacy?wsdl" --out config.yaml ``` -------------------------------- ### Initialize from website with no API docs Source: https://github.com/bvenkata/legacy2mcp/blob/main/AGENTS.md Crawls the site for forms/content; every operation lands confidence=low/needs_review=true, so review before trusting. ```bash legacy2mcp init --webpage-url "https://your-legacy-app.example.com/some-page" --out config.yaml ``` -------------------------------- ### Initialize from live REST API Source: https://github.com/bvenkata/legacy2mcp/blob/main/AGENTS.md Point at a live REST API; tries OpenAPI/Swagger discovery, no API key needed. ```bash legacy2mcp init --rest-url "https://api.example.com" --out config.yaml ``` -------------------------------- ### Generate config with legacy2mcp init Source: https://github.com/bvenkata/legacy2mcp/blob/main/skill/legacy2mcp/SKILL.md Generate the configuration file `config.yaml` and a human-readable `config.html` report. The exact command depends on the source type; see `references/sources.md` for the full command per source type. ```bash legacy2mcp init --out config.yaml ``` -------------------------------- ### Configure database adapter in config.yaml Source: https://github.com/bvenkata/legacy2mcp/blob/main/README.md Define a database adapter with tables and queries. The LLM can only call select_