Skip to content
Open
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
10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,57 +8,63 @@

jobs:
verify:
name: Verify
name: Verify (Node ${{ matrix.node }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# 24 is the Node line of the Docker image. 20 is end of life, but it stays
# until the package states an engines floor above it.
node: [20, 24]
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
node-version: ${{ matrix.node }}

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Build (regenerates MCP tools)
run: yarn build

- name: Ensure working tree is clean after build
# `yarn build` regenerates tools.generated.ts and runs lint:fix. Asserting the
# whole tree is unchanged catches both stale generated output and any file the
# build would have auto-fixed (so lint issues can't be silently absorbed).
run: git diff --exit-code

- name: Lint
run: yarn lint

- name: Test
run: yarn test

- name: Smoke test the packed codegen package
# Install the codegen tarball in an empty project outside the workspace and run it
# with plain Node. This step fails if the tarball has no build output or if a
# runtime import is missing from `dependencies`.
working-directory: packages/openapi-codegen
run: |
set -euo pipefail
SMOKE_DIR="$(mktemp -d)"
npm pack --pack-destination "$SMOKE_DIR"
cd "$SMOKE_DIR"
echo '{ "name": "codegen-smoke", "private": true }' > package.json
npm install --no-audit --no-fund ./taskade-mcp-openapi-codegen-*.tgz
node --input-type=module <<'EOF'
import { codegen } from '@taskade/mcp-openapi-codegen';
const document = {
openapi: '3.0.0',
info: { title: 'Smoke', version: '1.0.0' },
paths: { '/ping': { get: { operationId: 'ping', description: 'Ping', responses: {} } } },
};
const output = await codegen({ document });
if (!output.includes('"ping"')) {
throw new Error('The generated output has no ping tool');
}
console.log('codegen smoke test passed');
EOF

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:20-slim
FROM node:24.22.1-slim

LABEL maintainer="Taskade <support@taskade.com>"
LABEL description="Taskade MCP Server — AI tools for projects, tasks, agents, and webhooks via Model Context Protocol"
Expand Down
Loading