Skip to content

Commit b8a3d23

Browse files
committed
細かい修正
1 parent e03cae4 commit b8a3d23

15 files changed

Lines changed: 78 additions & 819 deletions

.github/workflows/create-release-pr.yml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,10 @@ jobs:
3333
run: |
3434
git config user.name "github-actions[bot]"
3535
git config user.email "github-actions[bot]@users.noreply.github.com"
36-
37-
- name: Setup Node.js
38-
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
39-
with:
40-
node-version: 'lts/*'
41-
check-latest: true
42-
package-manager-cache: false
4336
44-
- uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
45-
with:
46-
run_install: |
47-
- recursive: true
48-
args: [--frozen-lockfile]
49-
37+
- name: Install pnpm
38+
uses: pnpm/setup@5d160c5bc68a09337ad0d5654e237e03253b5879 # v1.0.0
39+
5040
# No need to install dependencies - npm version works without them
5141
- name: Version bump
5242
id: version

.github/workflows/deploy.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,11 @@ jobs:
5858
check-latest: true
5959
package-manager-cache: false
6060

61-
- uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
62-
name: Install pnpm
63-
with:
64-
run_install: |
65-
- recursive: true
66-
args: [--no-frozen-lockfile]
67-
- args: [--global, esbuild]
61+
- name: Install pnpm
62+
uses: pnpm/setup@5d160c5bc68a09337ad0d5654e237e03253b5879 # v1.0.0
63+
64+
- name: Install global dependencies
65+
run: pnpm add -g esbuild
6866

6967
- name: Build
7068
run: pnpm build

.github/workflows/scorecard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,6 @@ jobs:
7575
# Upload the results to GitHub's code scanning dashboard (optional).
7676
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
7777
- name: "Upload to code-scanning"
78-
uses: github/codeql-action/upload-sarif@e4fba868fa4b1b91e1fdab776edc8cfbe6e9fb81 # v4.37.3
78+
uses: github/codeql-action/upload-sarif@f205ea1c3313d32999d8d6a48b4f6530d4437b38 # v4.37.4
7979
with:
8080
sarif_file: results.sarif

example/eslint.config.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,10 @@ const eslintConfig: Config[] = defineConfig(
4545
sourceType: 'module',
4646
parser,
4747
parserOptions: {
48-
projectService: false,
48+
projectService: {
49+
allowDefaultProject: ['eslint.config.ts'],
50+
},
4951
tsconfigRootDir: __dirname,
50-
project: ['./tsconfig-eslint.json'],
5152
},
5253
},
5354
extends: [

example/lambda/index.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ const createMcpServer = () => {
1010
const server = new McpServer({
1111
name: 'hello-server',
1212
version: '1.0.0',
13-
});
13+
},
14+
);
1415

1516
server.registerTool(
1617
'say_hello',
@@ -27,7 +28,9 @@ const createMcpServer = () => {
2728
);
2829
return server;
2930
};
30-
const app = createHonoApp(createMcpServer);
31+
const app = createHonoApp(createMcpServer, {
32+
host: '0.0.0.0',
33+
});
3134

3235
// Lambda handler
3336
export const handler = handle(app);

example/lib/example-stack.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export class ExampleStack extends cdk.Stack {
4040
bundling: {
4141
// No externalModules since we want to bundle everything
4242
nodeModules: [
43-
'@modelcontextprotocol/sdk',
43+
'@modelcontextprotocol/server',
4444
'hono',
4545
'zod',
4646
],
@@ -66,7 +66,7 @@ export class ExampleStack extends cdk.Stack {
6666
allowMethods: cdk.aws_apigateway.Cors.ALL_METHODS,
6767
},
6868
deployOptions: {
69-
stageName: 'v1',
69+
stageName: 'v2',
7070
},
7171
endpointTypes: [cdk.aws_apigateway.EndpointType.REGIONAL],
7272
});

example/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
},
1818
"devDependencies": {
1919
"@eslint/js": "10.0.1",
20-
"@hono/mcp": "0.3.1",
2120
"@hono/node-server": "2.0.11",
2221
"@stylistic/eslint-plugin": "5.10.0",
2322
"@types/aws-lambda": "8.10.162",

example/tsconfig-eslint.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"devEngines": {
2222
"packageManager": {
2323
"name": "pnpm",
24-
"version": "^11.17.0",
24+
"version": "^11.19.0",
2525
"onFail": "download"
2626
}
2727
},

package/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ npm install aws-lambda-mcp-server
2020
TypeScriptでの利用例です。
2121

2222
```typescript
23-
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
23+
import { McpServer } from '@modelcontextprotocol/server';
2424
import { createHonoApp } from 'aws-lambda-mcp-server';
2525
import { handle } from 'hono/aws-lambda';
2626
import { z } from 'zod';

0 commit comments

Comments
 (0)