-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy paths.yaml
More file actions
52 lines (50 loc) · 1.41 KB
/
s.yaml
File metadata and controls
52 lines (50 loc) · 1.41 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
edition: 3.0.0
name: mcp-server-app
access: "{{ access }}"
vars:
region: "{{ region }}"
resources:
start-mcp-nodejs-baidu-map:
component: fc3
props:
region: ${vars.region}
functionName: "{{ functionName }}"
description: mcp server deployed by devs
runtime: custom.debian10
timeout: 300
cpu: 1
memorySize: 2048
diskSize: 512
instanceConcurrency: 200
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
BAIDU_MAP_API_KEY: '{{ BAIDU_MAP_API_KEY }}'
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
code: ./code
triggers:
- triggerName: httpTrigger
triggerType: http
triggerConfig:
authType: anonymous
methods:
- GET
- POST
- PUT
- DELETE
- HEAD
- OPTIONS