1---
2id: mcp-terminate-session
3title: "Terminate an MCP Streamable HTTP session"
4description: "Terminate the MCP session identified by the `Mcp-Session-Id` header. Subsequent requests bearing the same session id will receive `404 Not Found`."
5sidebar_label: "Terminate an MCP Streamable HTTP session"
6hide_title: true
7hide_table_of_contents: true
8api: eJzNVMFu2zAM/RWCZ8dJux4234auQwt0w4Ckp6GoFYttiMqSJtHpssD/PtBxmrYpdt7JhiiR7z0+cotiHjJWP7FtIt4WaCk3iaNw8FjhglLL3giBrAi+nf+ATDlz8MCWvPA9k4XlZojW35o4me/Ckytbw4qMpVTCvFtm+tWRF0j6zZJhSSaxfxgeZtPSi7zwxM5BooZ4TVCfzc7gexD4Gjpv6xILDJGSUYBXFivFfSd7mHdjGiwwmmRaEkrKbovetIQVvsaIBbLS3CHFt+znb7kmSCRd8gfSmdKaEgQPNXsWNo7/UA3G24ErJ7IazO9IIAFaw14M+1fKNsEL+45lo2T3WbC6Ny5Tf6tHOQafKWO1xdPZmX7eB/6siy2xL/BsdnJ898abTlYh8R+yJSy0kdP1ybRtYg3kbQw8guZEGerUeeGWSn1UK4clKeJ7fuiSJjjf/4Px8PnHFTzSBmIKa7aUgD1sQpdgHrmhGOwolKQNPLGsoEk0aG1cHhF/OEb8NaQlW0t+hHsZsuzdBmvjOgLO4INoucGZe9BtE0vjXHgie7cKWXINjrOMpd4R8sY/+vDkISQwLpGxm8lB0yPHl9j3BbYkq6DOtORIaLCirLDCUVYscOeanTG75NSBIrGaTl1ojFNk1cfZp9mRIa81DJbW5EJs1U27TC9lH3SsJxPNqIhutVzTJZbNUM9Evnsk/b/VGPv7oLyFxemAjFIdlVals3bNwuGK44Z8Jn0/ztfnaJoVTU5LBX+Ym9eRvkClv0t8Ws7K2aTzWczSkcZiyNIa/yLrYQ2Z3azMJZFp9QFcLhbPs/MW9RZ1mMjL/7rKZBOVn9BvmUZn2Cv/wRHb0TU/cX2CxX47qzX0bLtdmkw3yfW9Hv/qKA0dLXBtEg9Can+L/WbTxlvOGthvkn9I9T/svXeVGXx7vMOHmccKB7M/j9+Xi+uLxQX2/V+wkWkt
9sidebar_class_name: "delete api-method"
10info_path: docs/api/HTTP/runtime
11custom_edit_url: null
12proxy: http://localhost:8090
13---
14
15import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
16import ParamsDetails from "@theme/ParamsDetails";
17import RequestSchema from "@theme/RequestSchema";
18import StatusCodes from "@theme/StatusCodes";
19import OperationTabs from "@theme/OperationTabs";
20import TabItem from "@theme/TabItem";
21import Heading from "@theme/Heading";
22import Translate from "@docusaurus/Translate";
23
24<Heading
25 as={"h1"}
26 className={"openapi__heading"}
27 children={"Terminate an MCP Streamable HTTP session"}
28>
29</Heading>
30
31<MethodEndpoint
32 method={"delete"}
33 path={"/v1/mcp"}
34 context={"endpoint"}
35>
36
37</MethodEndpoint>
38
39
40
41Terminate the MCP session identified by the `Mcp-Session-Id` header. Subsequent requests bearing the same session id will receive `404 Not Found`.
42
43<Heading
44 id={"request"}
45 as={"h2"}
46 className={"openapi-tabs__heading"}
47>
48 <Translate id="theme.openapi.request.title">Request</Translate>
49</Heading>
50
51<ParamsDetails
52 {...require("./mcp-terminate-session.ParamsDetails.json")}
53>
54
55</ParamsDetails>
56
57<RequestSchema
58 {...require("./mcp-terminate-session.RequestSchema.json")}
59>
60
61</RequestSchema>
62
63<StatusCodes
64 {...require("./mcp-terminate-session.StatusCodes.json")}
65>
66
67</StatusCodes>
68
69
70
1---
2id: mcp-terminate-session
3title: "Terminate an MCP Streamable HTTP session"
4description: "Terminate the MCP session identified by the `Mcp-Session-Id` header. Subsequent requests bearing the same session id will receive `404 Not Found`."
5sidebar_label: "Terminate an MCP Streamable HTTP session"
6hide_title: true
7hide_table_of_contents: true
8api: eJzNVMFu2zAM/RWCZ8dJux4234auQwt0w4Ckp6GoFYttiMqSJtHpssD/PtBxmrYpdt7JhiiR7z0+cotiHjJWP7FtIt4WaCk3iaNw8FjhglLL3giBrAi+nf+ATDlz8MCWvPA9k4XlZojW35o4me/Ckytbw4qMpVTCvFtm+tWRF0j6zZJhSSaxfxgeZtPSi7zwxM5BooZ4TVCfzc7gexD4Gjpv6xILDJGSUYBXFivFfSd7mHdjGiwwmmRaEkrKbovetIQVvsaIBbLS3CHFt+znb7kmSCRd8gfSmdKaEgQPNXsWNo7/UA3G24ErJ7IazO9IIAFaw14M+1fKNsEL+45lo2T3WbC6Ny5Tf6tHOQafKWO1xdPZmX7eB/6siy2xL/BsdnJ898abTlYh8R+yJSy0kdP1ybRtYg3kbQw8guZEGerUeeGWSn1UK4clKeJ7fuiSJjjf/4Px8PnHFTzSBmIKa7aUgD1sQpdgHrmhGOwolKQNPLGsoEk0aG1cHhF/OEb8NaQlW0t+hHsZsuzdBmvjOgLO4INoucGZe9BtE0vjXHgie7cKWXINjrOMpd4R8sY/+vDkISQwLpGxm8lB0yPHl9j3BbYkq6DOtORIaLCirLDCUVYscOeanTG75NSBIrGaTl1ojFNk1cfZp9mRIa81DJbW5EJs1U27TC9lH3SsJxPNqIhutVzTJZbNUM9Evnsk/b/VGPv7oLyFxemAjFIdlVals3bNwuGK44Z8Jn0/ztfnaJoVTU5LBX+Ym9eRvkClv0t8Ws7K2aTzWczSkcZiyNIa/yLrYQ2Z3azMJZFp9QFcLhbPs/MW9RZ1mMjL/7rKZBOVn9BvmUZn2Cv/wRHb0TU/cX2CxX47qzX0bLtdmkw3yfW9Hv/qKA0dLXBtEg9Can+L/WbTxlvOGthvkn9I9T/svXeVGXx7vMOHmccKB7M/j9+Xi+uLxQX2/V+wkWkt
9sidebar_class_name: "delete api-method"
10info_path: docs/api/HTTP/runtime
11custom_edit_url: null
12proxy: http://localhost:8090
13---
14
15import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
16import ParamsDetails from "@theme/ParamsDetails";
17import RequestSchema from "@theme/RequestSchema";
18import StatusCodes from "@theme/StatusCodes";
19import OperationTabs from "@theme/OperationTabs";
20import TabItem from "@theme/TabItem";
21import Heading from "@theme/Heading";
22import Translate from "@docusaurus/Translate";
23
24<Heading
25 as={"h1"}
26 className={"openapi__heading"}
27 children={"Terminate an MCP Streamable HTTP session"}
28>
29</Heading>
30
31<MethodEndpoint
32 method={"delete"}
33 path={"/v1/mcp"}
34 context={"endpoint"}
35>
36
37</MethodEndpoint>
38
39
40
41Terminate the MCP session identified by the `Mcp-Session-Id` header. Subsequent requests bearing the same session id will receive `404 Not Found`.
42
43<Heading
44 id={"request"}
45 as={"h2"}
46 className={"openapi-tabs__heading"}
47>
48 <Translate id="theme.openapi.request.title">Request</Translate>
49</Heading>
50
51<ParamsDetails
52 {...require("./mcp-terminate-session.ParamsDetails.json")}
53>
54
55</ParamsDetails>
56
57<RequestSchema
58 {...require("./mcp-terminate-session.RequestSchema.json")}
59>
60
61</RequestSchema>
62
63<StatusCodes
64 {...require("./mcp-terminate-session.StatusCodes.json")}
65>
66
67</StatusCodes>
68
69
70
