File tree Expand file tree Collapse file tree 3 files changed +18
-1
lines changed Expand file tree Collapse file tree 3 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 55 * SPDX-License-Identifier: Apache-2.0
66 */
77
8+ import "@elastic/opentelemetry-node" ;
9+ import "./telemetry.js" ;
10+
811import { z } from "zod" ;
912import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js" ;
1013import {
Original file line number Diff line number Diff line change 2727 " README.md"
2828 ],
2929 "scripts" : {
30- "build" : " tsc && shx chmod +x dist/* .js" ,
30+ "build" : " tsc && shx chmod +x dist/index .js" ,
3131 "prepare" : " npm run build" ,
3232 "watch" : " tsc --watch" ,
3333 "start" : " node dist/index.js" ,
3838 "generate-notice" : " node ./scripts/generate-notice.js"
3939 },
4040 "dependencies" : {
41+ "@arizeai/openinference-instrumentation-mcp" : " ^0.2.0" ,
4142 "@elastic/elasticsearch" : " ^9.0.0" ,
43+ "@elastic/opentelemetry-node" : " ^1.0.0" ,
4244 "@modelcontextprotocol/sdk" : " 1.12.1"
4345 },
4446 "engines" : {
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright Elasticsearch B.V. and contributors
3+ * SPDX-License-Identifier: Apache-2.0
4+ */
5+
6+ import { MCPInstrumentation } from "@arizeai/openinference-instrumentation-mcp" ;
7+ import * as MCPServerStdioModule from "@modelcontextprotocol/sdk/server/stdio.js" ;
8+
9+ const mcpInstrumentation = new MCPInstrumentation ( ) ;
10+ mcpInstrumentation . manuallyInstrument ( {
11+ serverStdioModule : MCPServerStdioModule ,
12+ } ) ;
You can’t perform that action at this time.
0 commit comments