{"at":"2026-11-22T23:54:56.534Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-22T23:54:57.415Z","dir":"received","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"name":"kconfig","version":""}},"cacheScope":"private","capabilities":{"prompts":{"listChanged":true},"resources":{"listChanged":true,"subscribe":true},"tools":{"listChanged":true}},"instructions":"Answer configuration questions about Kconfig trees (Linux kernel, Zephyr, U-Boot, Buildroot, ...). Start with kconfig_load (Linux needs env={\"SRCARCH\": \"x86\", \"ARCH\": \"x86\"}; pass shell=\"dry\" if the compiler isn't installed or on Windows). Then: kconfig_why_not explains every unmet dependency behind a symbol and proposes a VERIFIED minimal set of changes; kconfig_symbol shows one symbol; kconfig_set applies a change and reports what else changed; kconfig_save writes the .config. Symbol names work with or without the CONFIG_ prefix.","resultType":"complete","supportedVersions":["2026-07-28"],"ttlMs":0}}}
{"at":"2026-11-22T23:54:57.415Z","dir":"sent","era":"server_discover","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-22T23:54:57.418Z","dir":"received","era":"server_discover","message":{"id":2,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"name":"kconfig","version":""}},"cacheScope":"private","resultType":"complete","tools":[{"description":"Parse a Kconfig tree (and optionally a .config) into a session named `name`.\n\nkconfig_path is the top-level Kconfig file; its directory becomes srctree.\nenv supplies the variables the tree expands - Linux needs SRCARCH and ARCH\n(e.g. {\"SRCARCH\": \"x86\", \"ARCH\": \"x86_64\"}); Zephyr needs ZEPHYR_BASE and\nfriends. Missing ones are named in the error.\nshell: \"run\" executes the tree's $(shell,...) compiler probes with a POSIX sh,\nas `make menuconfig` would. \"dry\" runs nothing (no compiler needed, works on\nWindows); compiler-feature symbols then read as absent.\nA Linux tree takes 10-40 s to parse; the session stays loaded.\n","inputSchema":{"properties":{"config_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Config Path"},"env":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"default":null,"title":"Env"},"kconfig_path":{"title":"Kconfig Path","type":"string"},"name":{"title":"Name","type":"string"},"shell":{"default":"run","title":"Shell","type":"string"}},"required":["name","kconfig_path"],"title":"kconfig_loadArguments","type":"object"},"name":"kconfig_load","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"kconfig_loadOutput","type":"object"}},{"description":"Forget a loaded session.","inputSchema":{"properties":{"name":{"title":"Name","type":"string"}},"required":["name"],"title":"kconfig_unloadArguments","type":"object"},"name":"kconfig_unload","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"kconfig_unloadOutput","type":"object"}},{"description":"List loaded sessions.","inputSchema":{"properties":{},"title":"kconfig_sessionsArguments","type":"object"},"name":"kconfig_sessions","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"kconfig_sessionsOutput","type":"object"}},{"description":"Everything about one symbol: type, prompt, current value and why, help\ntext, where it's defined, its dependencies, and what selects/implies it.","inputSchema":{"properties":{"name":{"title":"Name","type":"string"},"symbol":{"title":"Symbol","type":"string"}},"required":["name","symbol"],"title":"kconfig_symbolArguments","type":"object"},"name":"kconfig_symbol","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"kconfig_symbolOutput","type":"object"}},{"description":"Explain why a symbol isn't (or can't be) at `value`, and how to fix it.\n\nWalks every unmet `depends on`, `visible if`, `if` block, choice and\nselect/default condition with file:line, recursing into the symbols they\nname. Then searches for a minimal set of assignments and VERIFIES it by\napplying it to the tree - a fix is only shown if Kconfig agrees it works,\nalong with its side effects. value: \"y\", \"m\", or \"n\" (why can't I turn it off?).\n","inputSchema":{"properties":{"name":{"title":"Name","type":"string"},"symbol":{"title":"Symbol","type":"string"},"value":{"default":"y","title":"Value","type":"string"}},"required":["name","symbol"],"title":"kconfig_why_notArguments","type":"object"},"name":"kconfig_why_not","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"kconfig_why_notOutput","type":"object"}},{"description":"Who forces this symbol on (select), who suggests it (imply), and what it\nselects/implies itself - with current values and locations.","inputSchema":{"properties":{"name":{"title":"Name","type":"string"},"symbol":{"title":"Symbol","type":"string"}},"required":["name","symbol"],"title":"kconfig_what_selectsArguments","type":"object"},"name":"kconfig_what_selects","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"kconfig_what_selectsOutput","type":"object"}},{"description":"Find symbols whose name, prompt or help text matches `query`\n(case-insensitive; a regex is accepted). Name matches rank first.","inputSchema":{"properties":{"limit":{"default":20,"title":"Limit","type":"integer"},"name":{"title":"Name","type":"string"},"query":{"title":"Query","type":"string"}},"required":["name","query"],"title":"kconfig_searchArguments","type":"object"},"name":"kconfig_search","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"kconfig_searchOutput","type":"object"}},{"description":"Assign a value (y/m/n for bool/tristate; a number or string otherwise)\nas if in menuconfig, then report everything else that changed as a result.\nIf the value doesn't stick (hidden prompt, unmet dependency, choice rules)\nit says so - use kconfig_why_not to see why.","inputSchema":{"properties":{"name":{"title":"Name","type":"string"},"symbol":{"title":"Symbol","type":"string"},"value":{"title":"Value","type":"string"}},"required":["name","symbol","value"],"title":"kconfig_setArguments","type":"object"},"name":"kconfig_set","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"kconfig_setOutput","type":"object"}},{"description":"Compare the session's current values with another config file.\n\nA full .config lists every symbol that has a value, so a bool/tristate\nmissing from it is n - that's the default. For a defconfig or a config\nfragment (only the interesting lines), pass fragment=True to compare\njust the symbols the file mentions.\n","inputSchema":{"properties":{"fragment":{"default":false,"title":"Fragment","type":"boolean"},"limit":{"default":100,"title":"Limit","type":"integer"},"name":{"title":"Name","type":"string"},"other_config":{"title":"Other Config","type":"string"}},"required":["name","other_config"],"title":"kconfig_diffArguments","type":"object"},"name":"kconfig_diff","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"kconfig_diffOutput","type":"object"}},{"description":"Write the current configuration. minimal=True writes a defconfig-style\nfile with only the values that differ from defaults.","inputSchema":{"properties":{"minimal":{"default":false,"title":"Minimal","type":"boolean"},"name":{"title":"Name","type":"string"},"path":{"title":"Path","type":"string"}},"required":["name","path"],"title":"kconfig_saveArguments","type":"object"},"name":"kconfig_save","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"kconfig_saveOutput","type":"object"}}],"ttlMs":0}}}
{"at":"2026-11-22T23:54:57.569Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-22T23:54:58.440Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"prompts":{"listChanged":false},"resources":{"listChanged":false,"subscribe":false},"tools":{"listChanged":false}},"instructions":"Answer configuration questions about Kconfig trees (Linux kernel, Zephyr, U-Boot, Buildroot, ...). Start with kconfig_load (Linux needs env={\"SRCARCH\": \"x86\", \"ARCH\": \"x86\"}; pass shell=\"dry\" if the compiler isn't installed or on Windows). Then: kconfig_why_not explains every unmet dependency behind a symbol and proposes a VERIFIED minimal set of changes; kconfig_symbol shows one symbol; kconfig_set applies a change and reports what else changed; kconfig_save writes the .config. Symbol names work with or without the CONFIG_ prefix.","protocolVersion":"2025-11-25","serverInfo":{"name":"kconfig","version":""}}}}
{"at":"2026-11-22T23:54:58.440Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-22T23:54:58.440Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-22T23:54:58.444Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"Parse a Kconfig tree (and optionally a .config) into a session named `name`.\n\nkconfig_path is the top-level Kconfig file; its directory becomes srctree.\nenv supplies the variables the tree expands - Linux needs SRCARCH and ARCH\n(e.g. {\"SRCARCH\": \"x86\", \"ARCH\": \"x86_64\"}); Zephyr needs ZEPHYR_BASE and\nfriends. Missing ones are named in the error.\nshell: \"run\" executes the tree's $(shell,...) compiler probes with a POSIX sh,\nas `make menuconfig` would. \"dry\" runs nothing (no compiler needed, works on\nWindows); compiler-feature symbols then read as absent.\nA Linux tree takes 10-40 s to parse; the session stays loaded.\n","inputSchema":{"properties":{"config_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Config Path"},"env":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"default":null,"title":"Env"},"kconfig_path":{"title":"Kconfig Path","type":"string"},"name":{"title":"Name","type":"string"},"shell":{"default":"run","title":"Shell","type":"string"}},"required":["name","kconfig_path"],"title":"kconfig_loadArguments","type":"object"},"name":"kconfig_load","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"kconfig_loadOutput","type":"object"}},{"description":"Forget a loaded session.","inputSchema":{"properties":{"name":{"title":"Name","type":"string"}},"required":["name"],"title":"kconfig_unloadArguments","type":"object"},"name":"kconfig_unload","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"kconfig_unloadOutput","type":"object"}},{"description":"List loaded sessions.","inputSchema":{"properties":{},"title":"kconfig_sessionsArguments","type":"object"},"name":"kconfig_sessions","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"kconfig_sessionsOutput","type":"object"}},{"description":"Everything about one symbol: type, prompt, current value and why, help\ntext, where it's defined, its dependencies, and what selects/implies it.","inputSchema":{"properties":{"name":{"title":"Name","type":"string"},"symbol":{"title":"Symbol","type":"string"}},"required":["name","symbol"],"title":"kconfig_symbolArguments","type":"object"},"name":"kconfig_symbol","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"kconfig_symbolOutput","type":"object"}},{"description":"Explain why a symbol isn't (or can't be) at `value`, and how to fix it.\n\nWalks every unmet `depends on`, `visible if`, `if` block, choice and\nselect/default condition with file:line, recursing into the symbols they\nname. Then searches for a minimal set of assignments and VERIFIES it by\napplying it to the tree - a fix is only shown if Kconfig agrees it works,\nalong with its side effects. value: \"y\", \"m\", or \"n\" (why can't I turn it off?).\n","inputSchema":{"properties":{"name":{"title":"Name","type":"string"},"symbol":{"title":"Symbol","type":"string"},"value":{"default":"y","title":"Value","type":"string"}},"required":["name","symbol"],"title":"kconfig_why_notArguments","type":"object"},"name":"kconfig_why_not","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"kconfig_why_notOutput","type":"object"}},{"description":"Who forces this symbol on (select), who suggests it (imply), and what it\nselects/implies itself - with current values and locations.","inputSchema":{"properties":{"name":{"title":"Name","type":"string"},"symbol":{"title":"Symbol","type":"string"}},"required":["name","symbol"],"title":"kconfig_what_selectsArguments","type":"object"},"name":"kconfig_what_selects","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"kconfig_what_selectsOutput","type":"object"}},{"description":"Find symbols whose name, prompt or help text matches `query`\n(case-insensitive; a regex is accepted). Name matches rank first.","inputSchema":{"properties":{"limit":{"default":20,"title":"Limit","type":"integer"},"name":{"title":"Name","type":"string"},"query":{"title":"Query","type":"string"}},"required":["name","query"],"title":"kconfig_searchArguments","type":"object"},"name":"kconfig_search","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"kconfig_searchOutput","type":"object"}},{"description":"Assign a value (y/m/n for bool/tristate; a number or string otherwise)\nas if in menuconfig, then report everything else that changed as a result.\nIf the value doesn't stick (hidden prompt, unmet dependency, choice rules)\nit says so - use kconfig_why_not to see why.","inputSchema":{"properties":{"name":{"title":"Name","type":"string"},"symbol":{"title":"Symbol","type":"string"},"value":{"title":"Value","type":"string"}},"required":["name","symbol","value"],"title":"kconfig_setArguments","type":"object"},"name":"kconfig_set","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"kconfig_setOutput","type":"object"}},{"description":"Compare the session's current values with another config file.\n\nA full .config lists every symbol that has a value, so a bool/tristate\nmissing from it is n - that's the default. For a defconfig or a config\nfragment (only the interesting lines), pass fragment=True to compare\njust the symbols the file mentions.\n","inputSchema":{"properties":{"fragment":{"default":false,"title":"Fragment","type":"boolean"},"limit":{"default":100,"title":"Limit","type":"integer"},"name":{"title":"Name","type":"string"},"other_config":{"title":"Other Config","type":"string"}},"required":["name","other_config"],"title":"kconfig_diffArguments","type":"object"},"name":"kconfig_diff","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"kconfig_diffOutput","type":"object"}},{"description":"Write the current configuration. minimal=True writes a defconfig-style\nfile with only the values that differ from defaults.","inputSchema":{"properties":{"minimal":{"default":false,"title":"Minimal","type":"boolean"},"name":{"title":"Name","type":"string"},"path":{"title":"Path","type":"string"}},"required":["name","path"],"title":"kconfig_saveArguments","type":"object"},"name":"kconfig_save","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"kconfig_saveOutput","type":"object"}}]}}}
