Skip to content

Commit 5b2172e

Browse files
authored
Merge pull request #38 from QuantGeekDev/feature/lower-node-version
Feature/lower node version
2 parents 9ca3689 + 36bbc88 commit 5b2172e

File tree

5 files changed

+39
-5
lines changed

5 files changed

+39
-5
lines changed

.cursor/rules/mcp-framework.mdc

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
description:
3+
globs:
4+
alwaysApply: false
5+
---
6+
We are in the mcp-framework , a typescript framework that allows construction of model context protocol (mcp) servers.
7+
We are implementing the new specification:
8+
<specification>Overview
9+
MCP provides a standardized way for applications to:
10+
11+
Share contextual information with language models
12+
Expose tools and capabilities to AI systems
13+
Build composable integrations and workflows
14+
The protocol uses JSON-RPC 2.0 messages to establish communication between:
15+
16+
Hosts: LLM applications that initiate connections
17+
Clients: Connectors within the host application
18+
Servers: Services that provide context and capabilities
19+
MCP takes some inspiration from the Language Server Protocol, which standardizes how to add support for programming languages across a whole ecosystem of development tools. In a similar way, MCP standardizes how to integrate additional context and tools into the ecosystem of AI applications.
20+
21+
Key Details
22+
Base Protocol
23+
JSON-RPC message format
24+
Stateful connections
25+
Server and client capability negotiation
26+
Features
27+
Servers offer any of the following features to clients:
28+
29+
Resources: Context and data, for the user or the AI model to use
30+
Prompts: Templated messages and workflows for users
31+
Tools: Functions for the AI model to execute</specification>

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ mcp create <your project name here>
4949

5050
# Create a new project with the new EXPERIMENTAL HTTP transport
5151
Heads up: This will set cors allowed origin to "*", modify it in the index if you wish
52-
mcp create <your project name here> --http --port 3000 --cors
52+
mcp create <your project name here> --http --port 1337 --cors
5353
```
5454
5555
# Options:

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mcp-framework",
3-
"version": "0.2.2",
3+
"version": "0.2.3-beta.3",
44

55
"description": "Framework for building Model Context Protocol (MCP) servers in Typescript",
66
"type": "module",
@@ -25,7 +25,7 @@
2525
"watch": "tsc --watch"
2626
},
2727
"engines": {
28-
"node": ">=20.0.0"
28+
"node": ">=18.19.0"
2929
},
3030
"keywords": [
3131
"mcp",

src/cli/project/create.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export async function createProject(name?: string, options?: { http?: boolean, c
5757
scripts: {
5858
build: "tsc && mcp-build",
5959
watch: "tsc --watch",
60-
start: "npm run build && node dist/index.js"
60+
start: "node dist/index.js"
6161
},
6262
dependencies: {
6363
"mcp-framework": "^0.2.2"
@@ -66,6 +66,9 @@ export async function createProject(name?: string, options?: { http?: boolean, c
6666
"@types/node": "^20.11.24",
6767
"typescript": "^5.3.3"
6868
},
69+
engines: {
70+
"node": ">=18.19.0"
71+
}
6972
};
7073

7174
const tsconfig = {

src/transports/http/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export type JsonRpcMessage =
5959
export type HttpResponseMode = 'stream' | 'batch';
6060

6161
/**
62-
* Configuration options for Streamable HTTP transport that implements the MCP 2024-05-08 spec.
62+
* Configuration options for Streamable HTTP transport that implements the MCP 2025-03-26 spec.
6363
*
6464
* This defines the options for a transport that receives messages via HTTP POST and can respond
6565
* with either a single JSON response or open an SSE stream for streaming responses.

0 commit comments

Comments
 (0)