@@ -5,10 +5,159 @@ menuconfig MCP_SERVER
55 bool "Model Context Protocol (MCP) Server support"
66 depends on NETWORKING && HTTP_SERVER && JSON_LIBRARY
77 help
8- Enable support for MCP Server functionality.
8+ Support for MCP Server functionality.
99
1010if MCP_SERVER
1111
12+ config HTTP_SERVER_MAX_CLIENTS
13+ int "Max number of HTTP/2 clients"
14+ default 3
15+ range 1 100
16+ help
17+ This setting determines the maximum number of HTTP/2 clients that the server can handle at once.
18+
19+ config HTTP_SERVER_MAX_STREAMS
20+ int "Max number of HTTP/2 streams"
21+ default 3
22+ range 1 100
23+ help
24+ This setting determines the maximum number of HTTP/2 streams for each client.
25+
26+ config MCP_SERVER_INFO_NAME_MAX_LEN
27+ int "Maximum server info name length"
28+ default 64
29+ help
30+ Maximum length for the server name field in serverInfo.
31+
32+ config MCP_SERVER_INFO_NAME
33+ string "Server name"
34+ default "Zephyr MCP Server"
35+ help
36+ The name of the MCP server reported in serverInfo.
37+
38+ config MCP_SERVER_INFO_VERSION_MAX_LEN
39+ int "Maximum server info version length"
40+ default 16
41+ help
42+ Maximum length for the server version field in serverInfo.
43+
44+ config MCP_SERVER_INFO_VERSION
45+ string "Server version"
46+ default "1.0.0"
47+ help
48+ The version of the MCP server reported in serverInfo.
49+
50+ config MCP_SERVER_INFO_TITLE
51+ bool "Include server title in serverInfo"
52+ default n
53+ help
54+ Include optional title field in the serverInfo section.
55+
56+ if MCP_SERVER_INFO_TITLE
57+
58+ config MCP_SERVER_INFO_TITLE_MAX_LEN
59+ int "Maximum server info title length"
60+ default 64
61+ help
62+ Maximum length for the server title field in serverInfo.
63+
64+ config MCP_SERVER_INFO_TITLE_VALUE
65+ string "Server title"
66+ default "Zephyr MCP Server"
67+ help
68+ The title of the MCP server reported in serverInfo.
69+
70+ endif # MCP_SERVER_INFO_TITLE
71+
72+ config MCP_SERVER_INFO_INSTRUCTIONS
73+ bool "Include server instructions in serverInfo"
74+ default n
75+ help
76+ Include optional instructions field in the serverInfo section.
77+
78+ if MCP_SERVER_INFO_INSTRUCTIONS
79+
80+ config MCP_SERVER_INFO_INSTRUCTIONS_MAX_LEN
81+ int "Maximum server info instructions length"
82+ default 256
83+ help
84+ Maximum length for the server instructions field in serverInfo.
85+
86+ config MCP_SERVER_INFO_INSTRUCTIONS_VALUE
87+ string "Server instructions"
88+ default "This is a Zephyr-based MCP server providing tool capabilities."
89+ help
90+ The instructions for the MCP server reported in serverInfo.
91+
92+ endif # MCP_SERVER_INFO_INSTRUCTIONS
93+
94+ config MCP_TOOLS_CAPABILITY
95+ bool "Tools capability"
96+ default y
97+ help
98+ Tools capability in the MCP server. This allows the server
99+ to register and execute tools via tools/list and tools/call methods.
100+
101+ if MCP_TOOLS_CAPABILITY
102+
103+ config MCP_MAX_TOOLS
104+ int "Maximum number of registered tools"
105+ default 4
106+
107+ config MCP_TOOL_NAME_MAX_LEN
108+ int "Maximum tool name length"
109+ default 32
110+ help
111+ Maximum length for tool name and title fields.
112+
113+ config MCP_TOOL_DESC
114+ bool "Include tool description in tools/list response"
115+ default n
116+ help
117+ Include optional description field in the tools/list response.
118+
119+ if MCP_TOOL_DESC
120+
121+ config MCP_TOOL_DESC_MAX_LEN
122+ int "Maximum tool description length"
123+ default 256
124+ help
125+ Maximum length for tool description field.
126+
127+ endif # MCP_TOOL_DESC
128+
129+ config MCP_TOOL_SCHEMA_MAX_LEN
130+ int "Maximum input/output schema length"
131+ default 512
132+ help
133+ Maximum length for tool input and output schema fields.
134+
135+ config MCP_TOOL_INPUT_ARGS_MAX_LEN
136+ int "Maximum input argument length"
137+ default 512
138+ help
139+ Maximum length for tool input arguments RPC field.
140+
141+ config MCP_TOOL_TITLE
142+ bool "Include tool title field"
143+ default n
144+ help
145+ Include optional title field for tools. Adds memory overhead.
146+
147+ config MCP_TOOL_OUTPUT_SCHEMA
148+ bool "Include tool output schema field"
149+ default n
150+ help
151+ Include optional output schema field for tools. Adds memory overhead.
152+
153+ config MCP_TOOL_RESULT_MAX_LEN
154+ int "Maximum tool execution result length"
155+ default 256
156+ help
157+ Maximum length for tool execution result.
158+
159+ endif # MCP_TOOLS_CAPABILITY
160+
12161module = MCP
13162module-str = MCP Server
14163source "subsys/logging/Kconfig.template.log_config"
0 commit comments