Commit 0da8c44
committed
fix(mcp-profile-gateway): support inline JSON in MCP_PROFILE_GATEWAY_CONFIG
LoadPipelineConfig treated the env var value as a file path in all cases,
so e2e tests passing inline JSON triggered os.Stat on the JSON string,
causing "no such file or directory" and leaving the filter factory
unregistered. Detect values that start with '{' and parse them directly
via NewStaticConfig, falling back to the file-based pipeline for paths.1 parent c3878fc commit 0da8c44
1 file changed
Lines changed: 13 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
118 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
119 | 120 | | |
120 | | - | |
121 | | - | |
| 121 | + | |
| 122 | + | |
122 | 123 | | |
123 | 124 | | |
124 | | - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
125 | 133 | | |
126 | 134 | | |
127 | 135 | | |
| |||
0 commit comments