Ask for the manual folder at install, in the extension bundle (#120) - #133
Merged
Conversation
The .mcpb manifest passed an empty env, so a Claude Desktop user installing the
bundle had no way to configure the manual library at all - the tool would simply
never appear, and the only workaround was a machine-wide environment variable
set by hand, which is a poor answer for a one-click install.
The manifest now declares an MCPB v0.3 user_config entry - "Instrument manual
folder", type directory, optional - substituted into GPIB_MCP_MANUALS for the
server process. Desktop prompts for it at install and it stays editable in the
Extensions UI, so the setting belongs to the extension: visible where the user
already is, and gone when the extension is removed.
Also lists manual_search in the manifest's advertised tools.
Verified rather than assumed:
- the official @anthropic-ai/mcpb CLI validates the manifest against the schema
("Manifest schema validation passes!"), so the user_config shape is right;
- unpacking the built bundle confirms the env substitution survives packing;
- and the degradation claim in the comment was tested, not asserted: running the
server with the placeholder UNSUBSTITUTED gives one stderr warning, 29 tools,
no manual_search, and no crash. Which is what a user who skips the setting
gets.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
.mcpbmanifest passed an emptyenv, so a Claude Desktop user installing the bundle had no way to configure the manual library at all —manual_searchwould simply never appear, and the only workaround was a machine-wide environment variable set by hand. Poor answer for a one-click install.Change
The manifest now declares an MCPB v0.3
user_configentry — Instrument manual folder, typedirectory, optional — substituted intoGPIB_MCP_MANUALSfor the server process. Desktop prompts for it at install and it stays editable in the Extensions UI, so the setting belongs to the extension: visible where the user already is, and gone when the extension is removed.Also lists
manual_searchamong the manifest's advertised tools.Verified, not assumed
@anthropic-ai/mcpbCLI validates the manifest against the schema — "Manifest schema validation passes!" — so theuser_configshape is right rather than plausible.env: {"GPIB_MCP_MANUALS":"${user_config.manuals_folder}"}.GPIB_MCP_MANUALS points at '${user_config.manuals_folder}', which does not exist; manual lookup is disabled), 29 tools, nomanual_search, no crash.No code change, so the suite is unaffected (453 + 113).
README and
packaging/README.mdboth say how it's configured in Desktop versus by environment variable.