@langwatch/mcp-server 0.3.0 → 0.3.2
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/CHANGELOG.md +14 -0
- package/README.md +2 -2
- package/package.json +8 -8
- package/src/index.ts +12 -6
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -13990
- package/dist/index.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.3.2](https://github.com/langwatch/langwatch/compare/mcp-server@v0.3.1...mcp-server@v0.3.2) (2025-12-17)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* update mcp docs urls to the new langwatch.ai/docs and /scenario instead of the previous subdomains ([5b1ce07](https://github.com/langwatch/langwatch/commit/5b1ce073adf580fb7f897da98e1cdd6a1e25135e))
|
|
9
|
+
|
|
10
|
+
## [0.3.1](https://github.com/langwatch/langwatch/compare/mcp-server@v0.3.0...mcp-server@v0.3.1) (2025-11-15)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* sometimes the initial forward slash / is not sent by the llm ([2d63409](https://github.com/langwatch/langwatch/commit/2d63409e59e714b1a05c951edb8582c9fc39479f))
|
|
16
|
+
|
|
3
17
|
## [0.3.0](https://github.com/langwatch/langwatch/compare/mcp-server@v0.2.2...mcp-server@v0.3.0) (2025-11-15)
|
|
4
18
|
|
|
5
19
|
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# LangWatch 🏰 MCP Server
|
|
2
2
|
|
|
3
|
-
The LangWatch MCP Server makes your AI coding assistant an expert in both [LangWatch](https://
|
|
3
|
+
The LangWatch MCP Server makes your AI coding assistant an expert in both [LangWatch](https://langwatch.ai/docs), for automatically instrumenting your code, managing versioned prompts and creating evaluations; and [Scenario](https://langwatch.ai/scenario), for automatically testing your agents via simulations.
|
|
4
4
|
|
|
5
5
|
## Setup in your Coding Assistant 👩💻
|
|
6
6
|
|
|
@@ -53,5 +53,5 @@ Or ask it to write a scenario test:
|
|
|
53
53
|
If you have questions or need help, join our community:
|
|
54
54
|
|
|
55
55
|
- [Discord Community](https://discord.gg/kT4PhDS2gH)
|
|
56
|
-
- [LangWatch Docs](https://
|
|
56
|
+
- [LangWatch Docs](https://langwatch.ai/docs)
|
|
57
57
|
- [Email Support](mailto:support@langwatch.ai)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@langwatch/mcp-server",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "An MCP server for Langwatch.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -17,6 +17,12 @@
|
|
|
17
17
|
"url": "https://github.com/langwatch/langwatch.git",
|
|
18
18
|
"directory": "mcp-server"
|
|
19
19
|
},
|
|
20
|
+
"scripts": {
|
|
21
|
+
"start": "tsx src/index.ts",
|
|
22
|
+
"build": "tsup && node build.js",
|
|
23
|
+
"prepublish": "pnpm run build",
|
|
24
|
+
"test": "vitest"
|
|
25
|
+
},
|
|
20
26
|
"author": "",
|
|
21
27
|
"license": "MIT",
|
|
22
28
|
"engines": {
|
|
@@ -55,11 +61,5 @@
|
|
|
55
61
|
},
|
|
56
62
|
"bin": {
|
|
57
63
|
"langwatch-mcp-server": "./dist/index.js"
|
|
58
|
-
},
|
|
59
|
-
"scripts": {
|
|
60
|
-
"start": "tsx src/index.ts",
|
|
61
|
-
"build": "tsup && node build.js",
|
|
62
|
-
"prepublish": "pnpm run build",
|
|
63
|
-
"test": "vitest"
|
|
64
64
|
}
|
|
65
|
-
}
|
|
65
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -22,12 +22,15 @@ server.tool(
|
|
|
22
22
|
),
|
|
23
23
|
},
|
|
24
24
|
async ({ url }) => {
|
|
25
|
-
let urlToFetch = url || "https://
|
|
25
|
+
let urlToFetch = url || "https://langwatch.ai/docs/llms.txt";
|
|
26
26
|
if (url && !urlToFetch.endsWith(".md") && !urlToFetch.endsWith(".txt")) {
|
|
27
27
|
urlToFetch += ".md";
|
|
28
28
|
}
|
|
29
|
-
if (urlToFetch.startsWith("
|
|
30
|
-
urlToFetch
|
|
29
|
+
if (!urlToFetch.startsWith("http")) {
|
|
30
|
+
if (!urlToFetch.startsWith("/")) {
|
|
31
|
+
urlToFetch = "/" + urlToFetch;
|
|
32
|
+
}
|
|
33
|
+
urlToFetch = "https://langwatch.ai/docs" + urlToFetch;
|
|
31
34
|
}
|
|
32
35
|
const response = await fetch(urlToFetch);
|
|
33
36
|
|
|
@@ -49,12 +52,15 @@ server.tool(
|
|
|
49
52
|
),
|
|
50
53
|
},
|
|
51
54
|
async ({ url }) => {
|
|
52
|
-
let urlToFetch = url || "https://
|
|
55
|
+
let urlToFetch = url || "https://langwatch.ai/scenario/llms.txt";
|
|
53
56
|
if (url && !urlToFetch.endsWith(".md") && !urlToFetch.endsWith(".txt")) {
|
|
54
57
|
urlToFetch += ".md";
|
|
55
58
|
}
|
|
56
|
-
if (urlToFetch.startsWith("
|
|
57
|
-
urlToFetch
|
|
59
|
+
if (!urlToFetch.startsWith("http")) {
|
|
60
|
+
if (!urlToFetch.startsWith("/")) {
|
|
61
|
+
urlToFetch = "/" + urlToFetch;
|
|
62
|
+
}
|
|
63
|
+
urlToFetch = "https://langwatch.ai/scenario" + urlToFetch;
|
|
58
64
|
}
|
|
59
65
|
const response = await fetch(urlToFetch);
|
|
60
66
|
|
package/dist/index.d.ts
DELETED