Skip to content

Commit 20e0dfe

Browse files
authored
Merge pull request #4 from neriousy/refactor/mcp
refactor mcp
2 parents e4dda28 + 70dbe19 commit 20e0dfe

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+5307
-3359
lines changed

.github/workflows/ci.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
node-version: [18.x, 20.x]
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Use Node.js ${{ matrix.node-version }}
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: ${{ matrix.node-version }}
22+
cache: 'pnpm'
23+
- name: Install pnpm
24+
run: npm install -g pnpm@8
25+
- name: Install dependencies
26+
run: pnpm install --frozen-lockfile
27+
- name: Lint
28+
run: pnpm run lint
29+
- name: Run tests
30+
run: pnpm test -- --runInBand --ci --coverage
31+
- name: Build (type-check)
32+
run: pnpm run check-types
33+
- name: Upload coverage
34+
if: success()
35+
uses: actions/upload-artifact@v4
36+
with:
37+
name: coverage-${{ matrix.node-version }}
38+
path: packages/mcp-server/coverage
39+
- name: Generate API docs
40+
run: pnpm run docs:api
41+
- name: Upload docs
42+
if: success()
43+
uses: actions/upload-artifact@v4
44+
with:
45+
name: api-docs
46+
path: docs/api

apps/chat/instrumentation.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { registerOTel } from '@vercel/otel';
2+
3+
export function register() {
4+
registerOTel({
5+
serviceName: process.env.OTEL_SERVICE_NAME || 'privmx-chat',
6+
// forward environment configuration without extra code
7+
});
8+
}

0 commit comments

Comments
 (0)