Skip to content

feat: vue-i18n mcp (experimental) #2169

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
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
1 change: 1 addition & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ export default [
// ignore globally
{
ignores: [
'tools/mcp/**',
'**/dist/**',
'**/fixtures/**',
'**/coverage/**',
Expand Down
8 changes: 8 additions & 0 deletions tools/mcp/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Vue I18n MCP

> [!WARNING] This is an experimental. please don't still use it.


## ©️ License

[MIT](http://opensource.org/licenses/MIT)
8 changes: 8 additions & 0 deletions tools/mcp/deno.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"tasks": {
"dev": "deno run --watch main.ts"
},
"imports": {
"@std/assert": "jsr:@std/assert@1"
}
}
23 changes: 23 additions & 0 deletions tools/mcp/deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions tools/mcp/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export function add(a: number, b: number): number {
return a + b
}

// Learn more at https://docs.deno.com/runtime/manual/examples/module_metadata#concepts
if (import.meta.main) {
console.log('Add 2 + 3 =', add(2, 3))
}
6 changes: 6 additions & 0 deletions tools/mcp/main_test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { assertEquals } from '@std/assert'
import { add } from './main.ts'

Deno.test(function addTest() {
assertEquals(add(2, 3), 5)
})
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,5 @@
"shim.d.ts",
"*.config.ts"
],
"exclude": ["node_modules"]
"exclude": ["node_modules", "tools/mcp"]
}