chore: update MCP package build process and configuration defaults
This commit is contained in:
@@ -32,7 +32,7 @@ jobs:
|
|||||||
run: pnpm install --no-frozen-lockfile
|
run: pnpm install --no-frozen-lockfile
|
||||||
|
|
||||||
- name: Build publishable MCP package
|
- name: Build publishable MCP package
|
||||||
run: pnpm --filter @classroomio/mcp build
|
run: pnpm mcp:build
|
||||||
|
|
||||||
- name: Publish package
|
- name: Publish package
|
||||||
if: github.event_name == 'workflow_dispatch'
|
if: github.event_name == 'workflow_dispatch'
|
||||||
|
|||||||
+2
-1
@@ -16,7 +16,8 @@
|
|||||||
"dashboard:dev": "pnpm dev --filter=@cio/dashboard --filter=@cio/ui --filter=@cio/question-types --filter=@cio/db --filter=@cio/utils",
|
"dashboard:dev": "pnpm dev --filter=@cio/dashboard --filter=@cio/ui --filter=@cio/question-types --filter=@cio/db --filter=@cio/utils",
|
||||||
"api:dev": "pnpm dev --filter=@cio/api --filter=@cio/email --filter=@cio/db --filter=@cio/utils",
|
"api:dev": "pnpm dev --filter=@cio/api --filter=@cio/email --filter=@cio/db --filter=@cio/utils",
|
||||||
"website:dev": "pnpm dev --filter=@cio/website",
|
"website:dev": "pnpm dev --filter=@cio/website",
|
||||||
"storybook:dev": "pnpm dev --filter=@cio/storybook --filter=@cio/ui --filter=@cio/question-types"
|
"storybook:dev": "pnpm dev --filter=@cio/storybook --filter=@cio/ui --filter=@cio/question-types",
|
||||||
|
"mcp:build": "pnpm build --filter=@classroomio/mcp"
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
"classroomio-mcp": "./dist/index.js"
|
"classroomio-mcp": "./dist/index.js"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "pnpm -C ../utils build && tsc --noEmit && rm -rf dist tsconfig.tsbuildinfo && node ./scripts/build.mjs",
|
"build": "tsc --noEmit && rm -rf dist tsconfig.tsbuildinfo && node ./scripts/build.mjs",
|
||||||
"dev": "tsx src/index.ts",
|
"dev": "tsx src/index.ts",
|
||||||
"start": "node dist/index.js"
|
"start": "node dist/index.js"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
const ZConfig = z.object({
|
const ZConfig = z.object({
|
||||||
CLASSROOMIO_API_URL: z.string().url(),
|
CLASSROOMIO_API_URL: z.url().default('https://api.classroomio.com'),
|
||||||
CLASSROOMIO_API_KEY: z.string().min(1),
|
CLASSROOMIO_API_KEY: z.string().min(1),
|
||||||
CLASSROOMIO_USER_AGENT: z.string().min(1).default('classroomio-mcp/0.0.1')
|
CLASSROOMIO_USER_AGENT: z.string().min(1).default('classroomio-mcp/0.0.1')
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user