Skip to content

About

Crossly for Visual Studio: offline validation, did-you-mean quick fixes, completion, hover docs and snippets for Crossly automation recipes and workflow files, plus the Crossly MCP server for Copilot.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Crossly for Visual Studio

ci release license

The Crossly extension for Visual Studio 2022 (17.0 and later, x64 and Arm64) and Visual Studio 2026. It is the Visual Studio counterpart of crossly-vscode and crossly-jetbrains.

Write Crossly automation recipes and workflow files with Visual Studio checking them as you type. Crossly is the crosslisting platform for resellers: list once, then crosspost, reprice, relist and delist across eBay, Poshmark, Mercari, Depop, Grailed, Facebook Marketplace, Vinted, Whatnot, Shopify and more. A recipe is a JSON automation rule (a trigger, an optional condition, an action) that you import into Crossly or share in crossly-recipes.

  • Schema validation, offline: *.crossly-recipe.json and any .json under crossly-recipes/recipes/ against automation-recipe-v1.json (all 29 triggers, 7 conditions, 42 actions); bundles in *.crossly-recipes.json entry by entry; *.crossly-workflow.json (what Export JSON in the Crossly workflow editor downloads) against workflow-v1.json. Errors are squiggled and listed in the Error List while you type.
  • Did you mean: a mistyped trigger, condition or action type, config key, recipe key or enum value gets the closest valid name and a quick fix: press Ctrl+. on "listing.sol" for Change to "listing.sold".
  • Completion: keys, every trigger, condition and action type, and enum values, straight from the schemas.
  • Hover docs: hover a type for its description and config keys, or any key for its description.
  • Snippets: type crossly-recipe, crossly-recipe-condition, crossly-bundle, crossly-trigger, crossly-condition or crossly-action in any JSON file (also under Edit > IntelliSense > Insert Snippet in the JSON editor).
  • Tools > Crossly: open the Crossly docs, create an API token, and add the Crossly MCP server (npx -y @crossly/mcp) to GitHub Copilot agent mode so Copilot can manage your listings, orders and automations.

Validation, completion and snippets never touch the network or your account. New to Crossly? Create a free account, then read the developer docs.

Install

In Visual Studio: Extensions > Manage Extensions, search for Crossly, then restart Visual Studio. Or download crossly-visualstudio-<version>.vsix from the latest release and double-click it.

Every release VSIX has build provenance; check it before installing with:

gh attestation verify crossly-visualstudio-0.1.2.vsix -R crossly-dev/crossly-visualstudio

Files it recognises

File Schema
*.crossly-recipe.json, crossly-recipes/recipes/**/*.json automation-recipe-v1.json
*.crossly-recipes.json, crossly-recipes/recipes/all.json automation-recipe-bundle-v1.json
*.crossly-workflow.json workflow-v1.json

Any other .json file whose "$schema" is one of those URLs is checked too. The schemas ship inside the extension.

Visual Studio's JSON editor has no public API for an extension to map file names to a schema (the old IJSONSchemaSelector went away with the language-server JSON editor), so this extension validates, completes and documents Crossly files itself, in process, from the bundled schemas. A file whose "$schema" is a published Crossly URL may also get the JSON editor's own checks, from the schema it downloads.

Crossly MCP server in GitHub Copilot

Visual Studio 2022 17.14 and later run MCP servers for GitHub Copilot agent mode from %USERPROFILE%\.mcp.json (every solution) or <solution>\.mcp.json. Tools > Crossly > Add Crossly MCP Server... writes this entry into either file, keeping any other servers, and opens it:

{
  "servers": {
    "crossly": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@crossly/mcp"],
      "env": { "CROSSLY_PAT": "<your Crossly API token>" }
    }
  }
}

Create the token at crossly.net/settings/api/tokens/new (Tools > Crossly > Create API Token) and paste it into the dialog, or replace the placeholder in the file. The token is stored in that file in plain text: don't commit a solution .mcp.json that holds one. Then open Copilot Chat, switch to Agent mode and enable the Crossly tools. Node.js 20+ is required.

Development

Builds run on GitHub Actions (.github/workflows/ci.yml, windows-latest): the snippet check, the unit tests (dotnet test), then the VSIX (msbuild /restore, Microsoft.VSSDK.BuildTools) and a check of its contents. Locally, open Crossly.VisualStudio.sln in Visual Studio 2022 with the Visual Studio extension development workload and press F5 for an experimental instance, or:

dotnet test tests/Crossly.Core.Tests
msbuild src/Crossly.VisualStudio/Crossly.VisualStudio.csproj /restore /p:Configuration=Release
node scripts/gen-snippets.js        # regenerate snippets/crossly.snippet after a schema update

The editor-independent logic (JSON reader with offsets, validator, did-you-mean, hover, completion, snippets, MCP config) is in src/Crossly.Core and is unit-tested on .NET 8; src/Crossly.VisualStudio wires it into the editor (MEF taggers, Quick Info, async completion, suggested actions, Error List) and the Tools menu.

Releases: bump Version in source.extension.vsixmanifest (and Properties/AssemblyInfo.cs), add a CHANGELOG.md section, push a v<version> tag. The release workflow builds, attests and attaches the VSIX and SHA256SUMS to a GitHub Release, and publishes to the Visual Studio Marketplace when the repository variable PUBLISH_VS is true and the VS_MARKETPLACE_PAT secret is set.

Related

Links

License

MIT

About

Crossly for Visual Studio: offline validation, did-you-mean quick fixes, completion, hover docs and snippets for Crossly automation recipes and workflow files, plus the Crossly MCP server for Copilot.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages