Skip to content

Commit 1177814

Browse files
authored
Non-critical: Readme syntax and typographical error fixes (#765)
1 parent a9c907d commit 1177814

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ The Model Context Protocol allows applications to provide context for LLMs in a
4545
npm install @modelcontextprotocol/sdk
4646
```
4747

48-
> ⚠️ MCP requires Node v18.x up to work fine.
48+
> ⚠️ MCP requires Node.js v18.x or higher to work fine.
4949
5050
## Quick Start
5151

@@ -584,8 +584,8 @@ import cors from 'cors';
584584
// Add CORS middleware before your MCP routes
585585
app.use(cors({
586586
origin: '*', // Configure appropriately for production, for example:
587-
// origin: ['https://your-remote-domain.com, https://your-other-remote-domain.com'],
588-
exposedHeaders: ['Mcp-Session-Id']
587+
// origin: ['https://your-remote-domain.com', 'https://your-other-remote-domain.com'],
588+
exposedHeaders: ['Mcp-Session-Id'],
589589
allowedHeaders: ['Content-Type', 'mcp-session-id'],
590590
}));
591591
```
@@ -876,15 +876,15 @@ const putMessageTool = server.tool(
876876
"putMessage",
877877
{ channel: z.string(), message: z.string() },
878878
async ({ channel, message }) => ({
879-
content: [{ type: "text", text: await putMessage(channel, string) }]
879+
content: [{ type: "text", text: await putMessage(channel, message) }]
880880
})
881881
);
882882
// Until we upgrade auth, `putMessage` is disabled (won't show up in listTools)
883883
putMessageTool.disable()
884884

885885
const upgradeAuthTool = server.tool(
886886
"upgradeAuth",
887-
{ permission: z.enum(["write', admin"])},
887+
{ permission: z.enum(["write", "admin"])},
888888
// Any mutations here will automatically emit `listChanged` notifications
889889
async ({ permission }) => {
890890
const { ok, err, previous } = await upgradeAuthAndStoreToken(permission)
@@ -1175,7 +1175,7 @@ This setup allows you to:
11751175

11761176
### Backwards Compatibility
11771177

1178-
Clients and servers with StreamableHttp tranport can maintain [backwards compatibility](https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#backwards-compatibility) with the deprecated HTTP+SSE transport (from protocol version 2024-11-05) as follows
1178+
Clients and servers with StreamableHttp transport can maintain [backwards compatibility](https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#backwards-compatibility) with the deprecated HTTP+SSE transport (from protocol version 2024-11-05) as follows
11791179

11801180
#### Client-Side Compatibility
11811181

0 commit comments

Comments
 (0)