mirror of
https://github.com/sveltejs/ai-tools.git
synced 2026-07-06 20:55:44 +08:00
Compare commits
9 Commits
@sveltejs/
...
renovate/m
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9fc56bb461 | ||
|
|
a668188dfa | ||
|
|
59dcbff136 | ||
|
|
129a307df0 | ||
|
|
d051d7ce6c | ||
|
|
54a84c5512 | ||
|
|
2e8f79038e | ||
|
|
1b6b7589b5 | ||
|
|
fea691996f |
@@ -66,16 +66,21 @@ Alternatively, create or edit `~/.copilot/mcp-config.json` and add the following
|
||||
}
|
||||
```
|
||||
|
||||
## Gemini CLI
|
||||
## Antigravity CLI
|
||||
|
||||
To include the local MCP version in Gemini CLI, simply run the following command:
|
||||
To use the local MCP version in Antigravity CLI, create or edit `~/.gemini/config/mcp_config.json` and add the following configuration:
|
||||
|
||||
```bash
|
||||
gemini mcp add -t stdio -s [scope] svelte npx -y @sveltejs/mcp
|
||||
```json
|
||||
{
|
||||
"mcpServers": {
|
||||
"svelte": {
|
||||
"command": "npx",
|
||||
"args": ["-y", "@sveltejs/mcp"]
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
The `[scope]` must be `user`, `project` or `local`.
|
||||
|
||||
## OpenCode
|
||||
|
||||
You can automatically configure the MCP server using the [OpenCode plugin](opencode-plugin) (recommended). If you prefer to configure the MCP server manually, run:
|
||||
|
||||
@@ -56,16 +56,20 @@ Alternatively, create or edit `~/.copilot/mcp-config.json` and add the following
|
||||
}
|
||||
```
|
||||
|
||||
## Gemini CLI
|
||||
## Antigravity CLI
|
||||
|
||||
To use the remote MCP server with Gemini CLI, simply run the following command:
|
||||
To use the remote MCP version in Antigravity CLI, create or edit `~/.gemini/config/mcp_config.json` and add the following configuration:
|
||||
|
||||
```bash
|
||||
gemini mcp add -t http -s [scope] svelte https://mcp.svelte.dev/mcp
|
||||
```json
|
||||
{
|
||||
"mcpServers": {
|
||||
"svelte": {
|
||||
"url": "https://mcp.svelte.dev/mcp"
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
The `[scope]` must be `user` or `project`.
|
||||
|
||||
## OpenCode
|
||||
|
||||
You can automatically configure the MCP server using the [OpenCode plugin](opencode-plugin) (recommended). If you prefer to configure the MCP server manually, run:
|
||||
|
||||
@@ -36,7 +36,6 @@
|
||||
"devDependencies": {
|
||||
"@anthropic-ai/sdk": "catalog:ai",
|
||||
"@sveltejs/kit": "catalog:svelte",
|
||||
"@types/eslint-scope": "catalog:lint",
|
||||
"@types/estree": "catalog:tooling",
|
||||
"@typescript-eslint/types": "catalog:lint",
|
||||
"dotenv": "catalog:tooling"
|
||||
|
||||
@@ -25,7 +25,7 @@ function get_autofixer_schema(stdio: boolean) {
|
||||
desired_svelte_version: v.pipe(
|
||||
v.union([v.string(), v.number()]),
|
||||
v.description(
|
||||
'The desired svelte version...if possible read this from the package.json of the user project, otherwise use some hint from the wording (if the user asks for runes it wants version 5). Default to 5 in case of doubt.',
|
||||
'The desired major svelte version as an integer (must be 4 or 5)...if possible read this from the package.json of the user project, otherwise use some hint from the wording (if the user asks for runes it wants version 5). Default to 5 in case of doubt.',
|
||||
),
|
||||
),
|
||||
async: v.pipe(
|
||||
|
||||
@@ -1,17 +1,11 @@
|
||||
import ts_parser from '@typescript-eslint/parser';
|
||||
import type * as eslint from 'eslint';
|
||||
import type { CallExpression, Identifier } from 'estree';
|
||||
import type { Reference, Variable } from 'eslint-scope';
|
||||
import { parseForESLint as svelte_eslint_parse } from 'svelte-eslint-parser';
|
||||
import { runes } from '../constants.js';
|
||||
|
||||
type Scope = {
|
||||
variables?: Variable[];
|
||||
references?: Reference[];
|
||||
childScopes?: Scope[];
|
||||
};
|
||||
type ScopeManager = {
|
||||
globalScope: Scope;
|
||||
};
|
||||
type Scope = eslint.Scope.Scope;
|
||||
type ScopeManager = eslint.Scope.ScopeManager;
|
||||
|
||||
function collect_scopes(scope: Scope, acc: Scope[] = []) {
|
||||
acc.push(scope);
|
||||
@@ -27,12 +21,12 @@ export function parse(code: string, file_path: string) {
|
||||
parser: { ts: ts_parser, typescript: ts_parser },
|
||||
});
|
||||
let all_scopes: Scope[] | undefined;
|
||||
let all_variables: Variable[] | undefined;
|
||||
let all_references: Reference[] | undefined;
|
||||
let all_variables: eslint.Scope.Variable[] | undefined;
|
||||
let all_references: eslint.Scope.Reference[] | undefined;
|
||||
|
||||
function get_all_scopes() {
|
||||
if (!all_scopes) {
|
||||
all_scopes = collect_scopes(parsed.scopeManager!.globalScope);
|
||||
all_scopes = collect_scopes(parsed.scopeManager!.globalScope!);
|
||||
}
|
||||
return all_scopes;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,17 @@
|
||||
# @sveltejs/mcp
|
||||
|
||||
## 0.1.25
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- fix: better wording for `desired_svelte_version` ([`59dcbff`](https://github.com/sveltejs/ai-tools/commit/59dcbff136a91efad5a0e978e8208e1b1d277f97))
|
||||
|
||||
## 0.1.24
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- chore: support declaration tags ([#222](https://github.com/sveltejs/ai-tools/pull/222))
|
||||
|
||||
## 0.1.23
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@sveltejs/mcp",
|
||||
"version": "0.1.23",
|
||||
"version": "0.1.25",
|
||||
"type": "module",
|
||||
"license": "MIT",
|
||||
"mcpName": "dev.svelte/mcp",
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
"subfolder": "packages/mcp-stdio",
|
||||
"source": "github"
|
||||
},
|
||||
"version": "0.1.23",
|
||||
"version": "0.1.25",
|
||||
"websiteUrl": "https://svelte.dev/docs/mcp/overview",
|
||||
"icons": [
|
||||
{
|
||||
@@ -25,7 +25,7 @@
|
||||
{
|
||||
"registryType": "npm",
|
||||
"identifier": "@sveltejs/mcp",
|
||||
"version": "0.1.23",
|
||||
"version": "0.1.25",
|
||||
"runtimeHint": "npx",
|
||||
"transport": {
|
||||
"type": "stdio"
|
||||
|
||||
521
pnpm-lock.yaml
generated
521
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -1,19 +1,7 @@
|
||||
minimumReleaseAge: 2880
|
||||
minimumReleaseAgeExclude:
|
||||
- '@sveltejs/*'
|
||||
- svelte
|
||||
- esrap
|
||||
- devalue
|
||||
- zimmerframe
|
||||
- prettier-plugin-svelte
|
||||
- svelte-check
|
||||
- esm-env
|
||||
blockExoticSubdeps: true
|
||||
engineStrict: true
|
||||
|
||||
packages:
|
||||
- ./packages/*
|
||||
- ./apps/*
|
||||
blockExoticSubdeps: true
|
||||
|
||||
catalogs:
|
||||
ai:
|
||||
@@ -23,25 +11,24 @@ catalogs:
|
||||
'@opencode-ai/plugin': ^1.1.44
|
||||
lint:
|
||||
'@eslint/compat': ^2.0.0
|
||||
'@eslint/js': ^9.36.0
|
||||
'@types/eslint-scope': ^8.3.2
|
||||
'@eslint/js': ^10.0.0
|
||||
'@typescript-eslint/parser': ^8.44.0
|
||||
'@typescript-eslint/types': ^8.44.0
|
||||
eslint: ^9.36.0
|
||||
eslint: ^10.0.0
|
||||
eslint-config-prettier: ^10.0.1
|
||||
eslint-plugin-import: ^2.32.0
|
||||
eslint-plugin-pnpm: ^1.3.0
|
||||
eslint-plugin-svelte: ^3.12.5
|
||||
eslint-plugin-svelte: ^3.19.0
|
||||
globals: ^17.0.0
|
||||
prettier: ^3.4.2
|
||||
prettier-plugin-svelte: ^3.3.3
|
||||
svelte-eslint-parser: ^1.4.0
|
||||
svelte-eslint-parser: ^1.7.1
|
||||
typescript-eslint: ^8.44.0
|
||||
svelte:
|
||||
'@sveltejs/adapter-vercel': ^6.0.0
|
||||
'@sveltejs/kit': ^2.42.2
|
||||
'@sveltejs/vite-plugin-svelte': ^6.0.0
|
||||
svelte: ^5.47.0
|
||||
svelte: ^5.56.1
|
||||
svelte-check: ^4.0.0
|
||||
tmcp:
|
||||
'@tmcp/adapter-valibot': ^0.1.5
|
||||
@@ -68,5 +55,16 @@ catalogs:
|
||||
vite-plugin-devtools-json: ^1.0.0
|
||||
vitest: ^4.0.0
|
||||
zimmerframe: ^1.1.4
|
||||
engineStrict: true
|
||||
minimumReleaseAge: 2880
|
||||
minimumReleaseAgeExclude:
|
||||
- '@sveltejs/*'
|
||||
- svelte
|
||||
- esrap
|
||||
- devalue
|
||||
- zimmerframe
|
||||
- prettier-plugin-svelte
|
||||
- svelte-check
|
||||
- esm-env
|
||||
|
||||
useNodeVersion: 22.19.0
|
||||
|
||||
Reference in New Issue
Block a user