Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -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 )
Empty file added CONTRIBUTING.md
Empty file.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
},
Expand Down
5 changes: 1 addition & 4 deletions src/app-bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down