@libretranslate/mcp 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -47,7 +47,7 @@ Set the following environment variables:
47
47
 
48
48
  | Variable | Required | Description |
49
49
  | ------------------------ | ------------------ | -------------------------------------------------------------------------- |
50
- | `LIBRETRANSLATE_API_URL` | :check_mark_heavy: | URL of the LibreTranslate API (default: `https://libretranslate.com`) |
50
+ | `LIBRETRANSLATE_API_URL` | ✔️ | URL of the LibreTranslate API (default: `https://libretranslate.com`) |
51
51
  | `LIBRETRANSLATE_API_KEY` | | API key for the LibreTranslate service (required for `libretranslate.com`) |
52
52
 
53
53
 
@@ -57,27 +57,10 @@ Set the following environment variables:
57
57
 
58
58
  Detect the language of a given text.
59
59
 
60
- **Input:**
61
- - `text` (string): The text to detect the language for
62
-
63
- **Example:**
64
- ```json
65
- { "text": "Hello, world!" }
66
- ```
67
-
68
- **Response:**
69
- ```json
70
- {
71
- "language": "en",
72
- "confidence": 0.99
73
- }
74
- ```
75
-
76
60
  ### `translate`
77
61
 
78
62
  Translate text from one language to another.
79
63
 
80
-
81
64
  ### `languages`
82
65
 
83
66
  List all supported languages for translation.
package/dist/server.js CHANGED
@@ -8,7 +8,7 @@ const config = { apiUrl: API_URL, apiKey: API_KEY };
8
8
  export async function startServer() {
9
9
  const server = new McpServer({
10
10
  name: 'libretranslate-mcp',
11
- version: '1.0.0',
11
+ version: '1.0.1',
12
12
  });
13
13
  server.registerTool('detect', {
14
14
  description: 'Detect the language of a given text',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@libretranslate/mcp",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "LibreTranslate MCP server - Machine Translation for AI agents",
5
5
  "license": "AGPL-3.0-only",
6
6
  "keywords": [
@@ -13,7 +13,7 @@
13
13
  "type": "module",
14
14
  "main": "dist/index.js",
15
15
  "bin": {
16
- "libretranslate-mcp": "dist/index.js"
16
+ "@libretranslate/mcp": "dist/index.js"
17
17
  },
18
18
  "files": [
19
19
  "dist",