parent
3df49c38dc
commit
ca09c415bf
5 changed files with 46 additions and 5 deletions
39
.github/workflows/ci.yml
vendored
Normal file
39
.github/workflows/ci.yml
vendored
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: oven-sh/setup-bun@v2
|
||||
with:
|
||||
bun-version: latest
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "20"
|
||||
|
||||
- run: npm install
|
||||
|
||||
- run: npm run build
|
||||
|
||||
- name: Build simple-host example
|
||||
working-directory: examples/simple-host
|
||||
run: |
|
||||
npm install
|
||||
npm run build
|
||||
|
||||
- name: Build simple-server example
|
||||
working-directory: examples/simple-server
|
||||
run: |
|
||||
npm install
|
||||
npm run build
|
||||
|
||||
- run: npm run prettier
|
||||
4
.husky/pre-commit
Normal file
4
.husky/pre-commit
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
npm run build
|
||||
npm run prettier:fix
|
||||
( cd examples/simple-host && npm run build )
|
||||
( cd examples/simple-server && npm run build )
|
||||
0
CONTRIBUTING.md
Normal file
0
CONTRIBUTING.md
Normal file
|
|
@ -27,7 +27,7 @@
|
|||
"start:example-mcp-server": "cd examples//simple-server && npm --registry=https://registry.npmjs.org/ install && npm start",
|
||||
"start": "NODE_ENV=development npm run build && concurrently 'npm run start:example-host' 'npm run start:example-mcp-server'",
|
||||
"build": "bun build.bun.ts",
|
||||
"prepare": "npm run build",
|
||||
"prepare": "npm run build && husky",
|
||||
"prettier:base-cmd": "prettier -u --ignore-path ./.gitignore --ignore-path ./.prettierignore",
|
||||
"prettier": "yarn prettier:base-cmd \"$(pwd)/**/*.{js,jsx,ts,tsx,mjs,json,md,yml,yaml}\" --check",
|
||||
"prettier:fix": "yarn prettier:base-cmd \"$(pwd)/**/*.{js,jsx,ts,tsx,mjs,json,md,yml,yaml}\" --write --list-different"
|
||||
|
|
@ -40,6 +40,7 @@
|
|||
"cors": "^2.8.5",
|
||||
"esbuild": "^0.25.12",
|
||||
"express": "^5.1.0",
|
||||
"husky": "^9.1.7",
|
||||
"prettier": "^3.6.2",
|
||||
"typescript": "^5.9.3"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -266,10 +266,7 @@ export class AppBridge extends Protocol<Request, Notification, Result> {
|
|||
ListResourceTemplatesRequestSchema,
|
||||
ListResourceTemplatesResultSchema,
|
||||
);
|
||||
this.forwardRequest(
|
||||
ReadResourceRequestSchema,
|
||||
ReadResourceResultSchema,
|
||||
);
|
||||
this.forwardRequest(ReadResourceRequestSchema, ReadResourceResultSchema);
|
||||
if (serverCapabilities.resources.listChanged) {
|
||||
this.forwardNotification(ResourceListChangedNotificationSchema);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue