Skip to content

Commit 17240a3

Browse files
committed
feat: vue-i18n mcp (experimental)
1 parent 2e04bed commit 17240a3

File tree

7 files changed

+55
-1
lines changed

7 files changed

+55
-1
lines changed

eslint.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ export default [
8585
// ignore globally
8686
{
8787
ignores: [
88+
'tools/mcp/**',
8889
'**/dist/**',
8990
'**/fixtures/**',
9091
'**/coverage/**',

tools/mcp/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Vue I18n MCP
2+
3+
> [!WARNING] This is an experimental. please don't still use it.
4+
5+
6+
## ©️ License
7+
8+
[MIT](http://opensource.org/licenses/MIT)

tools/mcp/deno.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"tasks": {
3+
"dev": "deno run --watch main.ts"
4+
},
5+
"imports": {
6+
"@std/assert": "jsr:@std/assert@1"
7+
}
8+
}

tools/mcp/deno.lock

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/mcp/main.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
export function add(a: number, b: number): number {
2+
return a + b
3+
}
4+
5+
// Learn more at https://docs.deno.com/runtime/manual/examples/module_metadata#concepts
6+
if (import.meta.main) {
7+
console.log('Add 2 + 3 =', add(2, 3))
8+
}

tools/mcp/main_test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { assertEquals } from '@std/assert'
2+
import { add } from './main.ts'
3+
4+
Deno.test(function addTest() {
5+
assertEquals(add(2, 3), 5)
6+
})

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,5 +82,5 @@
8282
"shim.d.ts",
8383
"*.config.ts"
8484
],
85-
"exclude": ["node_modules"]
85+
"exclude": ["node_modules", "tools/mcp"]
8686
}

0 commit comments

Comments
 (0)