Skip to content

Commit ef0bc6b

Browse files
committed
add test:prompts, ci check
1 parent 1821a6b commit ef0bc6b

File tree

2 files changed

+57
-0
lines changed

2 files changed

+57
-0
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: ci-mcp-sanity
2+
on:
3+
pull_request:
4+
paths:
5+
- 'packages/mcp/**'
6+
- 'packages/common/**' # Added common since it's a dependency
7+
- 'packages/db/**' # Added common since it's a dependency
8+
- '.github/workflows/ci-mcp-sanity.yml'
9+
- 'package.json'
10+
- 'yarn.lock'
11+
12+
jobs:
13+
build-express-app:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
19+
- name: Start CouchDB
20+
uses: iamssen/couchdb-github-action@master
21+
with:
22+
couchdb-version: 2.3.1 # match production version
23+
24+
- name: Setup Node.js
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: 18
28+
cache: 'yarn'
29+
30+
- name: Install Yarn
31+
run: corepack enable
32+
33+
- name: Install dependencies
34+
run: yarn
35+
36+
- name: Prepare testdatabase & build library packgaes
37+
run: yarn setup
38+
39+
- name: run test database
40+
run: |
41+
yarn couchdb:start
42+
43+
- name: Build mcp package
44+
run: yarn workspace @vue-skuilder/mcp build
45+
46+
- name: list resources
47+
run: |
48+
yarn workspace @vue-skuilder/mcp test:resources
49+
50+
- name: list tools
51+
run: |
52+
yarn workspace @vue-skuilder/mcp test:resources
53+
54+
- name: list prompts
55+
run: |
56+
yarn workspace @vue-skuilder/mcp test:prompts

packages/mcp/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"test:cli": "npx @modelcontextprotocol/inspector --cli node dist/examples/local-dev.mjs",
1717
"test:resources": "yarn test:cli --method resources/list",
1818
"test:tools": "yarn test:cli --method tools/list",
19+
"test:prompts": "yarn test:cli --method prompts/list",
1920
"server": "node dist/examples/local-dev.mjs"
2021
},
2122
"dependencies": {

0 commit comments

Comments
 (0)