Update server-everything to allow choosing the transport on the command line.
* Update README.md
This commit is contained in:
parent
f93911607b
commit
f06dc654ff
1 changed files with 29 additions and 2 deletions
|
|
@ -173,7 +173,7 @@ Optionally, you can add it to a file called `.vscode/mcp.json` in your workspace
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
## Run with [HTTP+SSE Transport](https://modelcontextprotocol.io/specification/2024-11-05/basic/transports#http-with-sse) (deprecated as of [2025-03-26](https://modelcontextprotocol.io/specification/2025-03-26/basic/transports))
|
## Running from source with [HTTP+SSE Transport](https://modelcontextprotocol.io/specification/2024-11-05/basic/transports#http-with-sse) (deprecated as of [2025-03-26](https://modelcontextprotocol.io/specification/2025-03-26/basic/transports))
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
cd src/everything
|
cd src/everything
|
||||||
|
|
@ -181,10 +181,37 @@ npm install
|
||||||
npm run start:sse
|
npm run start:sse
|
||||||
```
|
```
|
||||||
|
|
||||||
## Run with [Streamable HTTP Transport](https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http)
|
## Run from source with [Streamable HTTP Transport](https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http)
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
cd src/everything
|
cd src/everything
|
||||||
npm install
|
npm install
|
||||||
npm run start:streamableHttp
|
npm run start:streamableHttp
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Running as an installed package
|
||||||
|
### Install
|
||||||
|
```shell
|
||||||
|
npm install -g @modelcontextprotocol/server-everything@latest
|
||||||
|
````
|
||||||
|
|
||||||
|
### Run the default (stdio) server
|
||||||
|
```shell
|
||||||
|
npx @modelcontextprotocol/server-everything
|
||||||
|
```
|
||||||
|
|
||||||
|
### Or specify stdio explicitly
|
||||||
|
```shell
|
||||||
|
npx @modelcontextprotocol/server-everything stdio
|
||||||
|
```
|
||||||
|
|
||||||
|
### Run the SSE server
|
||||||
|
```shell
|
||||||
|
npx @modelcontextprotocol/server-everything sse
|
||||||
|
```
|
||||||
|
|
||||||
|
### Run the streamable HTTP server
|
||||||
|
```shell
|
||||||
|
npx @modelcontextprotocol/server-everything streamableHttp
|
||||||
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue