chore(tauri-*,crates): now maintaining tauri and rust packages in another repo (#1533)

This commit is contained in:
Neko
2026-03-31 23:56:32 +08:00
committed by GitHub
parent 4e62f15090
commit 8991b541a3
96 changed files with 9 additions and 41358 deletions
-3
View File
@@ -1,3 +0,0 @@
# tauri-plugin-mcp
[Docs here](../../crates/tauri-plugin-mcp/README.md)
-45
View File
@@ -1,45 +0,0 @@
{
"name": "@proj-airi/tauri-plugin-mcp",
"type": "module",
"version": "0.9.0-beta.2",
"description": "A Tauri plugin for interacting with MCP servers.",
"author": {
"name": "Moeru AI Project AIRI Team",
"email": "airi@moeru.ai",
"url": "https://github.com/moeru-ai"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/moeru-ai/airi.git",
"directory": "packages/tauri-plugin-mcp"
},
"exports": {
".": "./src/index.ts"
},
"files": [
"README.md",
"dist",
"package.json"
],
"scripts": {
"build": "pkgroll"
},
"dependencies": {
"@tauri-apps/api": "^2.10.1"
},
"devDependencies": {
"pkgroll": "^2.27.0"
},
"publishConfig": {
"exports": {
".": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.mts"
}
}
}
-42
View File
@@ -1,42 +0,0 @@
import { invoke } from '@tauri-apps/api/core'
export interface ToolInputSchema {
required: string[]
title: string
type: 'object'
properties: Record<string, {
title: string
type: string
default?: any
}>
}
export interface CallToolResult {
content: {
type: string
text: string
}[]
isError: boolean
}
export interface Tool {
name: string
description: string
inputSchema: ToolInputSchema
}
export async function connectServer(command: string, args: string[]) {
await invoke('plugin:mcp|connect_server', { command, args })
}
export async function disconnectServer() {
await invoke('plugin:mcp|disconnect_server')
}
export async function listTools(): Promise<Tool[]> {
return await invoke('plugin:mcp|list_tools')
}
export async function callTool(name: string, args: Record<string, unknown>): Promise<CallToolResult> {
return await invoke('plugin:mcp|call_tool', { name, args })
}