@@ -18,8 +18,77 @@ export default function InspectorGuidePage() {
1818
1919 const inspectorCommand = `npx -y @modelcontextprotocol/inspector npx -y @metamcp/mcp-server-metamcp@latest -e METAMCP_API_KEY=${ apiKey ?. api_key || '<YOUR_API_KEY>' } -e METAMCP_API_BASE_URL=http://localhost:12005` ;
2020
21+ const sseEndpoint = `http://localhost:12007/sse with Authorization: Bearer ${ apiKey ?. api_key || '<YOUR_API_KEY>' } ` ;
22+ const urlBasedSseEndpoint = `http://localhost:12007/api-key/${ apiKey ?. api_key || '<YOUR_API_KEY>' } /sse` ;
23+
2124 return (
2225 < div className = 'container mx-auto py-6 flex flex-col items-start justify-center gap-6' >
26+ < h1 className = 'text-2xl font-semibold' > Remote SSE Mode Inspector Guide</ h1 >
27+
28+ < Card className = "w-full" >
29+ < CardHeader >
30+ < CardTitle className = 'flex items-center gap-2' >
31+ < Terminal className = 'h-5 w-5' />
32+ UI SSE Mode in Inspector
33+ </ CardTitle >
34+ </ CardHeader >
35+ < CardContent >
36+ < p className = "mb-4" >
37+ You can use the SSE mode to trigger the inspector directly from your UI. This method allows for a more integrated experience when inspecting tools.
38+ </ p >
39+
40+ < div className = "space-y-4" >
41+ < div >
42+ < h3 className = "font-medium mb-2" > Using Authorization Header:</ h3 >
43+ < div className = 'relative' >
44+ < button
45+ onClick = { ( ) => {
46+ navigator . clipboard . writeText ( sseEndpoint ) ;
47+ toast ( {
48+ title : 'Copied to clipboard' ,
49+ description : 'The SSE endpoint has been copied to your clipboard.' ,
50+ } ) ;
51+ } }
52+ className = 'absolute top-2 right-2 p-2 text-gray-400 hover:text-white rounded-md hover:bg-gray-700 transition-colors'
53+ title = 'Copy to clipboard' >
54+ < Copy className = 'w-5 h-5' />
55+ </ button >
56+ < pre className = 'bg-[#f6f8fa] text-[#24292f] p-4 rounded-md overflow-x-auto' >
57+ { sseEndpoint }
58+ </ pre >
59+ </ div >
60+ </ div >
61+
62+ < div >
63+ < h3 className = "font-medium mb-2" > Using URL-based Authentication:</ h3 >
64+ < div className = 'relative' >
65+ < button
66+ onClick = { ( ) => {
67+ navigator . clipboard . writeText ( urlBasedSseEndpoint ) ;
68+ toast ( {
69+ title : 'Copied to clipboard' ,
70+ description : 'The URL-based SSE endpoint has been copied to your clipboard.' ,
71+ } ) ;
72+ } }
73+ className = 'absolute top-2 right-2 p-2 text-gray-400 hover:text-white rounded-md hover:bg-gray-700 transition-colors'
74+ title = 'Copy to clipboard' >
75+ < Copy className = 'w-5 h-5' />
76+ </ button >
77+ < pre className = 'bg-[#f6f8fa] text-[#24292f] p-4 rounded-md overflow-x-auto' >
78+ { urlBasedSseEndpoint }
79+ </ pre >
80+ </ div >
81+ </ div >
82+
83+ < p className = "mt-4" >
84+ Configure your UI to connect to these endpoints and the inspector will be triggered automatically, providing real-time tool inspection capabilities.
85+ </ p >
86+ </ div >
87+ </ CardContent >
88+ </ Card >
89+
90+
91+ < h1 className = 'text-2xl font-semibold' > Local Proxy Mode Inspector Guide</ h1 >
2392 < p className = 'text-lg' >
2493 Because MetaMCP is a local proxy and we currently don't support any
2594 cloud hosting of your MCPs. You can use MCP's official inspector to
@@ -29,6 +98,7 @@ export default function InspectorGuidePage() {
2998 better experience for you to check inspection details directly on our
3099 platform.
31100 </ p >
101+
32102 < Card >
33103 < CardHeader >
34104 < CardTitle className = 'flex items-center gap-2' >
0 commit comments