Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/mcp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ See the [MCP integration page](https://microlink.io/integration/mcp) for a guide

## Install

Requires Node.js 24 or newer.

### Use the published package (recommended)

No local installation is required. Run directly with `npx`:
Expand Down
18 changes: 18 additions & 0 deletions packages/mcp/test/readme-requirements.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import test from 'node:test'
import assert from 'node:assert/strict'
import { readFile } from 'node:fs/promises'

const readJson = async path =>
JSON.parse(await readFile(new URL(path, import.meta.url), 'utf8'))

test('README states the package Node.js requirement', async () => {
const readme = await readFile(
new URL('../README.md', import.meta.url),
'utf8'
)
const pkg = await readJson('../package.json')
const minimumNode = pkg.engines.node.match(/\d+/)?.[0]

assert.ok(minimumNode)
assert.match(readme, new RegExp(`Node\\.js ${minimumNode} or newer`))
})