npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@testflowkit/mcp

v0.2.0

Published

TestFlowKit MCP server

Downloads

55

Readme

@testflowkit/mcp

TestFlowKit MCP server for Cursor and VS Code Copilot.

Provides the testflowkit MCP server with tools for generating valid Gherkin tests using the TestFlowKit step catalog.

Prerequisites

  • Node.js >= 22
  • tkit CLI installed (the server exports the step catalog from the local CLI)
  • A testflowkit.yml in your project root (run tkit init to generate one)

Getting started

1. Add the agent: section to testflowkit.yml

Run tkit init to generate testflowkit.yml with the agent block included, or add it manually:

agent:
  default_tags_for_draft: "@wip @ai-generated"
  run_command: "tkit run --tags @wip"

  step_catalog:
    # Omit file/url to use the local tkit CLI export (default).
    # file: "./build/step-definitions.json"
    # url: "https://..."

The agent: block is ignored by the tkit CLI — it is only read by this MCP server.

2. Configure Cursor

Add to your project's .cursor/mcp.json (or the global ~/.cursor/mcp.json):

{
  "mcpServers": {
    "testflowkit": {
      "command": "npx",
      "args": ["-y", "@testflowkit/mcp"]
    }
  }
}

3. Configure VS Code (Copilot with MCP)

Add to .vscode/mcp.json:

{
  "servers": {
    "testflowkit": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@testflowkit/mcp"]
    }
  }
}

Development (local path)

cd packages/testflowkit-mcp
npm install
npm run build

Then in .cursor/mcp.json:

{
  "mcpServers": {
    "testflowkit": {
      "command": "node",
      "args": ["/absolute/path/to/testflowkit/packages/testflowkit-mcp/dist/index.js"]
    }
  }
}

Typical workflow

  1. Pin framework documentation resources (e.g. docs://framework/features/api_testing) when you need macros, variables, hooks, random data, API testing, or frontend testing mechanics.
  2. Call get_step_categories to list available step categories.
  3. Call get_step_catalog (optionally with a category) to fetch matching sentences.
  4. Call get_config_schema to load the authoritative testflowkit.yml schema before generating or editing config.
  5. Call read_test_config to discover APIs, operations, pages, and element groups.
  6. Call write_gherkin_file to create or update a .feature file under settings.gherkin_location.

Available tools

| Tool | Description | |------|-------------| | get_step_categories | List step definition categories from the catalog | | get_step_catalog | Full step catalog; pass optional category (from get_step_categories) to filter | | get_config_schema | Full JSON schema exported from tkit export-config-schema for AI-safe config authoring | | read_test_config | Summary of testflowkit.yml (APIs, pages, elements — secrets redacted) | | list_gherkin_files | List all .feature files under settings.gherkin_location | | read_gherkin_file | Read a specific Gherkin feature file (path relative to project root) | | write_gherkin_file | Create or overwrite a Gherkin feature file (path-guarded to settings.gherkin_location) |

Framework documentation resources

Framework mechanics are exposed as MCP resources (not tools). Pin them in Cursor or read them via resources/read:

| URI | Description | |-----|-------------| | docs://framework/features/index | Index of all framework documentation pages | | docs://framework/features/macros | Macros — reusable parameterized scenarios | | docs://framework/features/random_data | Random data generators ({{ rand:... }}) | | docs://framework/features/global_hooks | @BeforeAll / @AfterAll setup and teardown | | docs://framework/features/variables | Scenario, environment, and global variables | | docs://framework/features/api_testing | REST and GraphQL API testing | | docs://framework/features/frontend_testing | Browser automation and UI testing |

Docs are synced from documentation/content/docs/patterns/ and documentation/content/docs/guides/ at build time into docs/features/ inside this package.

Catalog resolution

The server exports the step catalog directly from the installed tkit CLI (tkit export-step-definitions under the hood). The agent.step_catalog.file and agent.step_catalog.url fields in testflowkit.yml are reserved for a future release.

To generate a local catalog snapshot (useful on feature branches):

tkit export-step-definitions --format json > build/step-definitions.json

Set TESTFLOWKIT_CLI_PATH to point at a non-default tkit binary when needed.

Configuration

The server loads testflowkit.yml from the workspace root. config.yml is accepted as a legacy fallback.

Feature file tools resolve paths from settings.gherkin_location (default ./features).

Troubleshooting

MCP server not starting

  • Verify testflowkit.yml exists in the workspace root.
  • Run the server manually to see errors: npx @testflowkit/mcp

Catalog not loading

  • Ensure tkit is installed and tkit version works.
  • Run tkit export-step-definitions --format json manually to confirm the CLI export works.

.gitignore (recommended)

.testflowkit/
**/step-definitions.json

License

MIT