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
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ updates:
rebase-strategy: auto
assignees:
- poad
cooldown:
default-days: 7
groups:
actions:
patterns:
Expand All @@ -25,6 +27,8 @@ updates:
allow:
- dependency-type: all
rebase-strategy: auto
cooldown:
default-days: 7
assignees:
- poad
groups:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ jobs:
- name: Lint
run: pnpm run --if-present --recursive --parallel lint

- name: Test
run: pnpm run --if-present --recursive --parallel test

deploy-bexample:
# 同時実行すると CREATE_IN_PROGRESS や UPDATE_IN_PROGRESS 状態で cdk deploy を行う可能性があるため抑止する
concurrency:
Expand Down
2 changes: 1 addition & 1 deletion example/bin/example.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as cdk from 'aws-cdk-lib';
import { ExampleStack } from '../lib/example-stack.js';

const app = new cdk.App();
const stack = new ExampleStack(app, 'aws-lambda-mcp-server-example', {
const stack = new ExampleStack(app, 'AwsLambdaMcpServerExample', {

});
cdk.RemovalPolicies.of(stack).destroy();
25 changes: 14 additions & 11 deletions example/eslint.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { Config, defineConfig } from 'eslint/config';
import cdkPlugin from 'eslint-plugin-awscdk';
import eslint from '@eslint/js';
import { configs, parser } from 'typescript-eslint';
import stylistic from '@stylistic/eslint-plugin';
import importPlugin from 'eslint-plugin-import';
import { importX } from 'eslint-plugin-import-x';
import { createTypeScriptImportResolver } from 'eslint-import-resolver-typescript';
// @ts-expect-error ignore type errors
import pluginPromise from 'eslint-plugin-promise';

Expand Down Expand Up @@ -34,30 +36,31 @@ const eslintConfig: Config[] = defineConfig(
configs.stylistic,
pluginPromise.configs['flat/recommended'],
{
files: ['**/*.ts', '*.js'],
files: ['**/*.ts'],
plugins: {
'import-x': importX,
'@stylistic': stylistic,
},
languageOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
parser,
parserOptions: {
projectService: false,
tsconfigRootDir: __dirname,
project: ['tsconfig-eslint.json'],
project: ['./tsconfig-eslint.json'],
},
},
extends: [
importPlugin.flatConfigs.recommended,
importPlugin.flatConfigs.typescript,
'import-x/flat/recommended',
cdkPlugin.configs.recommended,
],
settings: {
'import/resolver': {
// You will also need to install and configure the TypeScript resolver
// See also https://github.com/import-js/eslint-import-resolver-typescript#configuration
'typescript': true,
'node': true,
},
'import-x/resolver-next': [
createTypeScriptImportResolver({
alwaysTryTypes: true,
}),
],
},
rules: {
'@stylistic/semi': ['error', 'always'],
Expand Down
2 changes: 1 addition & 1 deletion example/lib/example-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export class ExampleStack extends cdk.Stack {
constructor(scope: Construct, id: string, props?: cdk.StackProps) {
super(scope, id, props);

const projectName = this.node.tryGetContext('project-name') ?? 'aws-ambda';
const projectName = this.node.tryGetContext('project-name') ?? 'aws-lambda';

// Lambda関数のIAMロール
const lambdaRole = new cdk.aws_iam.Role(this, 'LambdaRole', {
Expand Down
33 changes: 15 additions & 18 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,42 +10,39 @@
"scripts": {
"build": "tsc",
"watch": "tsc -w",
"test": "vitest run --passWithNoTests",
"clean": "tsc --build --clean",
"dev": "tsx lambda/mcp-server/server.ts",
"lint": "eslint .",
"lint-fix": "eslint . --fix"
},
"devDependencies": {
"@eslint/compat": "2.0.3",
"@eslint/js": "^10.0.1",
"@hono/mcp": "0.2.5",
"@hono/node-server": "1.19.12",
"@stylistic/eslint-plugin": "^5.10.0",
"@eslint/js": "10.0.1",
"@hono/mcp": "0.2.4",
"@hono/node-server": "1.19.11",
"@stylistic/eslint-plugin": "5.10.0",
"@types/aws-lambda": "8.10.161",
"@types/node": "^25.5.0",
"@vitest/coverage-v8": "4.1.2",
"aws-cdk": "2.1115.0",
"esbuild": "^0.27.4",
"eslint": "^10.1.0",
"@types/node": "24.12.0",
"aws-cdk": "2.1113.0",
"esbuild": "0.27.4",
"eslint": "10.1.0",
"eslint-import-resolver-typescript": "4.4.4",
"eslint-plugin-import": "2.32.0",
"eslint-plugin-awscdk": "4.3.0",
"eslint-plugin-import-x": "4.16.2",
"eslint-plugin-promise": "7.2.1",
"jiti": "2.6.1",
"tslib": "2.8.1",
"tsx": "4.21.0",
"typescript": "6.0.2",
"typescript-eslint": "8.58.0",
"vite-tsconfig-paths": "6.1.1",
"vitest": "4.1.2"
"typescript": "5.9.3",
"typescript-eslint": "8.57.2"
},
"dependencies": {
"@aws-lambda-powertools/logger": "2.32.0",
"@modelcontextprotocol/sdk": "1.29.0",
"aws-cdk-lib": "2.245.0",
"aws-cdk-lib": "2.244.0",
"aws-lambda-mcp-server": "workspace:*",
"constructs": "10.6.0",
"hono": "^4.12.9",
"hono": "4.12.9",
"zod": "4.3.6"
}
}
}
2 changes: 1 addition & 1 deletion example/tsconfig-eslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
"exclude": [
"node_modules"
]
}
}
8 changes: 0 additions & 8 deletions example/vitest.config.ts

This file was deleted.

19 changes: 10 additions & 9 deletions package/eslint.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import { Config, defineConfig } from 'eslint/config';
import eslint from '@eslint/js';
import { configs, parser } from 'typescript-eslint';
import stylistic from '@stylistic/eslint-plugin';
import importPlugin from 'eslint-plugin-import';
import { importX } from 'eslint-plugin-import-x';
import { createTypeScriptImportResolver } from 'eslint-import-resolver-typescript';
// @ts-expect-error ignore type errors
import pluginPromise from 'eslint-plugin-promise';

Expand Down Expand Up @@ -36,28 +37,28 @@ const eslintConfig: Config[] = defineConfig(
{
files: ['**/*.ts'],
plugins: {
'import-x': importX,
'@stylistic': stylistic,
},
languageOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
parser,
parserOptions: {
projectService: false,
tsconfigRootDir: __dirname,
project: ['./tsconfig-eslint.json'],
},
},
extends: [
importPlugin.flatConfigs.recommended,
importPlugin.flatConfigs.typescript,
'import-x/flat/recommended',
],
settings: {
'import/resolver': {
// You will also need to install and configure the TypeScript resolver
// See also https://github.com/import-js/eslint-import-resolver-typescript#configuration
'typescript': true,
'node': true,
},
'import-x/resolver-next': [
createTypeScriptImportResolver({
alwaysTryTypes: true,
}),
],
},
rules: {
'@stylistic/semi': ['error', 'always'],
Expand Down
27 changes: 13 additions & 14 deletions package/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,30 +45,29 @@
},
"devDependencies": {
"@eslint/compat": "2.0.3",
"@eslint/js": "^10.0.1",
"@stylistic/eslint-plugin": "^5.10.0",
"@types/node": "^25.5.0",
"eslint": "^10.1.0",
"@eslint/js": "10.0.1",
"@stylistic/eslint-plugin": "5.10.0",
"@types/node": "24.12.0",
"eslint": "10.1.0",
"eslint-import-resolver-typescript": "4.4.4",
"eslint-plugin-import": "2.32.0",
"eslint-plugin-import-x": "4.16.2",
"eslint-plugin-promise": "7.2.1",
"jiti": "2.6.1",
"tsx": "4.21.0",
"typescript": "6.0.2",
"typescript-eslint": "8.58.0",
"vitest": "4.1.2"
"typescript": "5.9.3",
"typescript-eslint": "8.57.0"
},
"dependencies": {
"@aws-lambda-powertools/logger": "^2.32.0",
"@hono/mcp": "^0.2.5",
"@modelcontextprotocol/sdk": "^1.29.0",
"hono": "^4.12.9",
"zod": "^4.3.6"
"@aws-lambda-powertools/logger": "2.32.0",
"@hono/mcp": "0.2.4",
"@modelcontextprotocol/sdk": "1.29.0",
"hono": "4.12.9",
"zod": "4.3.6"
},
"peerDependencies": {
"@aws-lambda-powertools/logger": "^2.32.0",
"@hono/mcp": "^0.2.4",
"@modelcontextprotocol/sdk": "^1.28.0",
"@modelcontextprotocol/sdk": "^1.29.0",
"hono": "^4.12.9",
"zod": "^3.25 || ^4.0"
}
Expand Down
2 changes: 1 addition & 1 deletion package/tsconfig-eslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
"exclude": [
"node_modules"
]
}
}
Loading
Loading