-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy paths.yaml
More file actions
56 lines (56 loc) · 1.63 KB
/
s.yaml
File metadata and controls
56 lines (56 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
edition: 3.0.0
name: start-mcp-server-nodejs
access: '{{access}}'
vars:
region: '{{region}}'
resources:
mcp_server_nodejs_hello_world:
component: fc3
actions:
pre-deploy:
- run: export PATH=/usr/local/versions/node/v20.8.1/bin:$PATH || true || ver && npm install && node check_node_version.mjs && npm run build
path: ./code
props:
region: ${vars.region}
description: Serverless Devs Node MCP Server
runtime: custom.debian10
timeout: 300
cpu: 1
memorySize: 2048
diskSize: 512
logConfig: auto
environmentVariables:
PATH:
/opt/nodejs/node_modules/.bin:/opt/python/bin:/code/python/bin:/var/fc/lang/python3.10/bin:/var/fc/lang/nodejs20/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PYTHONPATH: /code:/code/python:/opt/python
layers:
- acs:fc:${vars.region}:1767215449378635:layers/mcp-proxy-layer/versions/6
customRuntimeConfig:
command:
- 'supergateway'
- '--stdio'
- 'node ./dist/index.js'
- '--port'
- '8080'
- '--ssePath'
- '/sse'
- '--messagePath'
- '/message'
port: 8080
functionName: '{{functionName}}'
code: ./code
instanceConcurrency: 200
concurrencyConfig:
reservedConcurrency: 1
triggers:
- triggerName: httpTrigger
triggerType: http
triggerConfig:
authType: anonymous
methods:
- GET
- POST
- PUT
- DELETE
- HEAD
- OPTIONS