File tree Expand file tree Collapse file tree 3 files changed +4
-9
lines changed
Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Original file line number Diff line number Diff line change 11import axios from "axios" ;
2- import { StdioServerParameters } from "@modelcontextprotocol/sdk/client/stdio.js" ;
3- import { SSEClientTransport } from '@modelcontextprotocol/sdk/client/sse.js' ;
42import {
53 getDefaultEnvironment ,
64 getMetaMcpApiBaseUrl ,
@@ -71,7 +69,9 @@ export async function getMcpServers(
7169 } else if ( params . type === "SSE" ) {
7270 // For SSE servers, ensure url is present
7371 if ( ! params . url ) {
74- console . warn ( `SSE server ${ params . uuid } is missing url field, skipping` ) ;
72+ console . warn (
73+ `SSE server ${ params . uuid } is missing url field, skipping`
74+ ) ;
7575 continue ;
7676 }
7777 }
Original file line number Diff line number Diff line change 1- import { StdioServerParameters } from "@modelcontextprotocol/sdk/client/stdio.js" ;
21import { ServerParameters } from "./fetch-metamcp.js" ;
32import {
43 ConnectedClient ,
Original file line number Diff line number Diff line change 1- import { StdioServerParameters } from "@modelcontextprotocol/sdk/client/stdio.js" ;
21import { ServerParameters } from "./fetch-metamcp.js" ;
32import crypto from "crypto" ;
43
@@ -96,9 +95,6 @@ export function computeParamsHash(
9695 return crypto . createHash ( "sha256" ) . update ( paramsJson ) . digest ( "hex" ) ;
9796}
9897
99- export function getSessionKey (
100- uuid : string ,
101- params : ServerParameters
102- ) : string {
98+ export function getSessionKey ( uuid : string , params : ServerParameters ) : string {
10399 return `${ uuid } _${ computeParamsHash ( params , uuid ) } ` ;
104100}
You can’t perform that action at this time.
0 commit comments