update url
This commit is contained in:
parent
5028c34d08
commit
5fd0ab7685
@ -14,6 +14,8 @@ The [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) enables AI
|
||||
|
||||
Built on top of [@mcp-ui/server](https://www.npmjs.com/package/@mcp-ui/server).
|
||||
|
||||
[DEOMO](https://mcp-ui-kit-inspector.vercel.app/)
|
||||
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
|
||||
@ -9,6 +9,7 @@
|
||||
"scripts": {
|
||||
"dev": "npm run start --workspace=demo-server & npm run dev --workspace=@mcp-ui-kit/inspector",
|
||||
"start": "npm run start --workspace=demo-server",
|
||||
"start:inspector": "npm run dev --workspace=@mcp-ui-kit/inspector",
|
||||
"publish:library": "npm publish --workspace=packages/library"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@ -28,7 +28,8 @@ export type ToolResult = {
|
||||
}
|
||||
|
||||
function App() {
|
||||
const [serverUrl, setServerUrl] = useState('http://localhost:3000/mcp')
|
||||
const isLocal = window.location.hostname === 'localhost'
|
||||
const [serverUrl, setServerUrl] = useState(isLocal ? 'http://localhost:3000/mcp' : 'https://mcp-ui-kit-demo-server.vercel.app/mcp')
|
||||
const {
|
||||
isConnected,
|
||||
isConnecting,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user