Skip to content

Commit fe8fcb1

Browse files
author
DeepWiki Dev
committed
ci: validate the local-first MCP fork
Replace inherited hosted-service CI/CD with a single read-only workflow that installs from the frozen lockfile, verifies the MCP package, and fails on any production dependency advisory. Pin every action to a verified full commit SHA, use Node 24 with pnpm caching, and bound job duration. Remove Upstash-specific npm release, canary, ECR, MCP Registry, and issue-triage workflows because this fork does not own their credentials or deployment targets. This prevents false failures and avoids retaining unused privileged automation. Expand the root README with the implemented automatic ingestion, hybrid retrieval, commit-bound reads, freshness and migration behavior, top-1000 prewarm, evaluation harness, local security boundaries, and client configuration while keeping the presentation plain. Validated MCP lint, build, typecheck, 20 tests, edited-file formatting, frozen installation, and a production audit with no known vulnerabilities.
1 parent 3fb0412 commit fe8fcb1

7 files changed

Lines changed: 71 additions & 298 deletions

File tree

.github/workflows/canary-release.yml

Lines changed: 0 additions & 46 deletions
This file was deleted.

.github/workflows/ecr-deploy.yml

Lines changed: 0 additions & 57 deletions
This file was deleted.

.github/workflows/mcp-registry.yml

Lines changed: 0 additions & 54 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 0 additions & 50 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 26 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Test
1+
name: CI
22

33
on:
44
pull_request:
@@ -15,58 +15,51 @@ on:
1515
branches: [master]
1616
workflow_dispatch:
1717

18+
permissions:
19+
contents: read
20+
1821
concurrency:
1922
group: ${{ github.workflow }}-${{ github.ref }}
2023
cancel-in-progress: true
2124

2225
jobs:
23-
test:
26+
verify:
27+
name: Build, test, and audit
2428
runs-on: ubuntu-latest
25-
steps:
26-
- uses: actions/checkout@v7
29+
timeout-minutes: 15
2730

28-
- name: Setup Node
29-
uses: actions/setup-node@v6
30-
with:
31-
node-version: "20"
31+
steps:
32+
- name: Check out repository
33+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
3234

33-
- name: Setup pnpm
34-
uses: pnpm/action-setup@v4
35+
- name: Set up pnpm
36+
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
3537
with:
3638
version: 10
3739

38-
- name: Get pnpm store directory
39-
id: pnpm-cache
40-
shell: bash
41-
run: |
42-
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
43-
44-
- name: Cache pnpm dependencies
45-
uses: actions/cache@v6
40+
- name: Set up Node.js
41+
uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6
4642
with:
47-
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
48-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
49-
restore-keys: |
50-
${{ runner.os }}-pnpm-store-
43+
node-version: "24"
44+
cache: pnpm
5145

52-
- name: Install Dependencies
46+
- name: Install dependencies
5347
run: pnpm install --frozen-lockfile
5448

5549
- name: Lint
56-
run: pnpm lint:check
50+
run: pnpm --filter @upstash/context7-mcp lint:check
5751

5852
- name: Format
59-
run: pnpm format:check
53+
run: pnpm --filter @upstash/context7-mcp format:check
6054

6155
- name: Build
62-
run: pnpm build
56+
run: pnpm --filter @upstash/context7-mcp build
6357

6458
- name: Typecheck
65-
run: pnpm typecheck
59+
run: pnpm --filter @upstash/context7-mcp typecheck
60+
61+
- name: Test local MCP
62+
run: pnpm --filter @upstash/context7-mcp test
6663

67-
- name: Test
68-
run: pnpm test
69-
env:
70-
AWS_REGION: ${{ secrets.AWS_REGION }}
71-
AWS_BEARER_TOKEN_BEDROCK: ${{ secrets.AWS_BEARER_TOKEN_BEDROCK }}
72-
CONTEXT7_API_KEY: ${{ secrets.CONTEXT7_API_KEY }}
64+
- name: Audit production dependencies
65+
run: pnpm audit --prod --audit-level low

.github/workflows/triage-library-report.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)