Commit 03d471b
feat(mcp-server): add customizable server instructions via environment variable
Add support for WCGW_SERVER_INSTRUCTIONS environment variable to allow
customization of server instructions in MCP Initialize tool responses.
- Add CUSTOM_INSTRUCTIONS global variable to store instructions
- Read WCGW_SERVER_INSTRUCTIONS environment variable on server startup
- Prepend custom instructions to existing hardcoded Initialize response
- Maintain backward compatibility when no custom instructions provided
- Preserve original hardcoded message content1 parent a358815 commit 03d471b
2 files changed
Lines changed: 14 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
| 125 | + | |
125 | 126 | | |
126 | 127 | | |
127 | 128 | | |
128 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
129 | 136 | | |
130 | 137 | | |
131 | 138 | | |
| |||
141 | 148 | | |
142 | 149 | | |
143 | 150 | | |
| 151 | + | |
144 | 152 | | |
145 | 153 | | |
146 | 154 | | |
147 | | - | |
| 155 | + | |
148 | 156 | | |
149 | 157 | | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
150 | 161 | | |
151 | 162 | | |
152 | 163 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments