@arizeai/phoenix-mcp 2.3.5 → 2.3.7
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 +4 -4
- package/build/index.js +3 -3
- package/build/readmeResource.js +2 -2
- package/package.json +18 -19
package/README.md
CHANGED
|
@@ -26,21 +26,21 @@
|
|
|
26
26
|
<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=8e8e8b34-7900-43fa-a38f-1f070bd48c64&page=js/packages/phoenix-mcp/README.md" />
|
|
27
27
|
</p>
|
|
28
28
|
|
|
29
|
-
Phoenix MCP Server is an implementation of the Model Context Protocol for the Arize Phoenix platform. It provides a unified interface to Phoenix's
|
|
29
|
+
Phoenix MCP Server is an implementation of the Model Context Protocol for the Arize Phoenix platform. It provides a unified interface to Phoenix's capabilities.
|
|
30
30
|
|
|
31
31
|
You can use Phoenix MCP Server for:
|
|
32
32
|
|
|
33
33
|
- **Projects Management**: List and explore projects that organize your observability data
|
|
34
34
|
- **Spans & Annotations**: Retrieve spans and their annotations for analysis and debugging
|
|
35
35
|
- **Prompts Management**: Create, list, update, and iterate on prompts
|
|
36
|
-
- **Datasets**: Explore datasets
|
|
36
|
+
- **Datasets**: Explore datasets and synthesize new examples
|
|
37
37
|
- **Experiments**: Pull experiment results and visualize them with the help of an LLM
|
|
38
38
|
|
|
39
39
|
Don't see a use-case covered? `@arizeai/phoenix-mcp` is [open-source](https://github.com/Arize-ai/phoenix)! Issues and PRs welcome.
|
|
40
40
|
|
|
41
41
|
## Installation
|
|
42
42
|
|
|
43
|
-
This MCP server can be used
|
|
43
|
+
This MCP server can be used with `npx` and can be directly integrated with clients like Claude Desktop, Cursor, and more.
|
|
44
44
|
|
|
45
45
|
```json
|
|
46
46
|
{
|
|
@@ -111,7 +111,7 @@ Make sure to set these in a `.env` file. See `.env.example`.
|
|
|
111
111
|
|
|
112
112
|
Join our community to connect with thousands of AI builders:
|
|
113
113
|
|
|
114
|
-
- 🌍 Join our [Slack community](https://
|
|
114
|
+
- 🌍 Join our [Slack community](https://join.slack.com/t/arize-ai/shared_invite/zt-3r07iavnk-ammtATWSlF0pSrd1DsMW7g).
|
|
115
115
|
- 📚 Read the [Phoenix documentation](https://arize.com/docs/phoenix).
|
|
116
116
|
- 💡 Ask questions and provide feedback in the _#phoenix-support_ channel.
|
|
117
117
|
- 🌟 Leave a star on our [GitHub](https://github.com/Arize-ai/phoenix).
|
package/build/index.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/* eslint-disable no-console */
|
|
3
3
|
import { createClient } from "@arizeai/phoenix-client";
|
|
4
|
+
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
5
|
+
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
6
|
+
import minimist from "minimist";
|
|
4
7
|
import { initializeDatasetTools } from "./datasetTools.js";
|
|
5
8
|
import { initializeExperimentTools } from "./experimentTools.js";
|
|
6
9
|
import { initializeProjectTools } from "./projectTools.js";
|
|
@@ -8,9 +11,6 @@ import { initializePromptTools } from "./promptTools.js";
|
|
|
8
11
|
import { initializeReadmeResources } from "./readmeResource.js";
|
|
9
12
|
import { initializeSpanTools } from "./spanTools.js";
|
|
10
13
|
import { initializeSupportTools } from "./supportTools.js";
|
|
11
|
-
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
12
|
-
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
13
|
-
import minimist from "minimist";
|
|
14
14
|
const argv = minimist(process.argv.slice(2));
|
|
15
15
|
const headers = argv.apiKey
|
|
16
16
|
? {
|
package/build/readmeResource.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ListResourcesRequestSchema, ReadResourceRequestSchema, } from "@modelcontextprotocol/sdk/types.js";
|
|
2
1
|
import fs from "fs";
|
|
3
|
-
import { glob } from "glob";
|
|
4
2
|
import { dirname } from "node:path";
|
|
5
3
|
import { fileURLToPath } from "node:url";
|
|
6
4
|
import path from "path";
|
|
5
|
+
import { ListResourcesRequestSchema, ReadResourceRequestSchema, } from "@modelcontextprotocol/sdk/types.js";
|
|
6
|
+
import { glob } from "glob";
|
|
7
7
|
import z from "zod";
|
|
8
8
|
const _dirname = typeof __dirname !== "undefined"
|
|
9
9
|
? __dirname
|
package/package.json
CHANGED
|
@@ -1,46 +1,45 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arizeai/phoenix-mcp",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.7",
|
|
4
4
|
"description": "A MCP server for Arize Phoenix",
|
|
5
|
-
"bin": {
|
|
6
|
-
"@arizeai/phoenix-mcp": "./build/index.js"
|
|
7
|
-
},
|
|
8
|
-
"type": "module",
|
|
9
|
-
"files": [
|
|
10
|
-
"build"
|
|
11
|
-
],
|
|
12
5
|
"keywords": [
|
|
13
|
-
"
|
|
14
|
-
"
|
|
6
|
+
"arize-phoenix",
|
|
7
|
+
"mcp"
|
|
15
8
|
],
|
|
16
|
-
"author": "oss@arize.com",
|
|
17
|
-
"license": "Apache-2.0",
|
|
18
9
|
"homepage": "https://github.com/Arize-ai/phoenix/tree/main/js/packages/phoenix-mcp",
|
|
10
|
+
"bugs": {
|
|
11
|
+
"url": "https://github.com/Arize-ai/phoenix/issues"
|
|
12
|
+
},
|
|
13
|
+
"license": "Apache-2.0",
|
|
14
|
+
"author": "oss@arize.com",
|
|
19
15
|
"repository": {
|
|
20
16
|
"type": "git",
|
|
21
17
|
"url": "git+https://github.com/Arize-ai/phoenix.git"
|
|
22
18
|
},
|
|
23
|
-
"
|
|
24
|
-
"
|
|
19
|
+
"bin": {
|
|
20
|
+
"@arizeai/phoenix-mcp": "./build/index.js"
|
|
25
21
|
},
|
|
22
|
+
"files": [
|
|
23
|
+
"build"
|
|
24
|
+
],
|
|
25
|
+
"type": "module",
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@modelcontextprotocol/sdk": "^1.25.2",
|
|
28
28
|
"glob": "^12.0.0",
|
|
29
29
|
"minimist": "^1.2.8",
|
|
30
30
|
"zod": "^3.24.2",
|
|
31
|
-
"@arizeai/phoenix-client": "5.
|
|
31
|
+
"@arizeai/phoenix-client": "5.9.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/glob": "^8.1.0",
|
|
35
35
|
"@types/minimist": "^1.2.5",
|
|
36
36
|
"@types/node": "^22.14.0",
|
|
37
|
-
"tsx": "^4.19.3"
|
|
38
|
-
"typescript": "^5.8.2"
|
|
37
|
+
"tsx": "^4.19.3"
|
|
39
38
|
},
|
|
40
39
|
"scripts": {
|
|
41
40
|
"build": "tsc && chmod 755 build/index.js",
|
|
42
41
|
"dev": "source ./.env && tsx src/index.ts -- --apiKey $PHOENIX_API_KEY --baseUrl $PHOENIX_BASE_URL",
|
|
43
|
-
"
|
|
44
|
-
"
|
|
42
|
+
"inspect": "pnpm run build && npx -y @modelcontextprotocol/inspector -- node build/index.js",
|
|
43
|
+
"typecheck": "tsc --noEmit"
|
|
45
44
|
}
|
|
46
45
|
}
|