We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/sparesparrow/mcp-prompts'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
name: Build and Test (Reusable)
on:
workflow_call:
inputs:
node-version:
description: 'Node.js version to use'
required: false
default: '20.x'
type: string
run-integration:
description: 'Run integration tests'
required: false
default: 'true'
type: string
secrets:
NPM_TOKEN:
required: false
jobs:
build-and-test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:14
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: mcp_prompts_test
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ inputs.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Lint (ESLint)
run: npm run lint
- name: Check formatting (Prettier)
run: npm run format:check
- name: Run unit tests
run: npm run test:unit
- name: Run integration tests
if: ${{ inputs.run-integration == 'true' }}
run: npm run test:integration
env:
PG_HOST: localhost
PG_PORT: 5432
PG_DATABASE: mcp_prompts_test
PG_USER: postgres
PG_PASSWORD: postgres
PG_SSL: false
- name: Build
run: npm run build --if-present
- name: Audit dependencies
run: npm audit --audit-level=moderate
- name: Run coverage
run: npm run test:coverage
- name: Upload coverage artifact
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: coverage/