This extension integrates your npm MCP service industrial-information-hub-mcp@latest as a VS Code MCP Provider, so users do not need to manually edit the global mcp.json.
How It Works
- After activation, the extension prompts the user to enter environment variables:
BASE_URL,API_USERNAME,API_PASSWORD, andENV_TYPE. - In
package.json, the extension declares an MCP Provider entry viacontributes.mcpServerDefinitionProviders. - The extension registers the MCP server definition through
vscode.lm.registerMcpServerDefinitionProvider. - The actual startup configuration is equivalent to:
{
"label": "industrial-information-hub-mcp",
"command": "npx",
"args": ["-y", "industrial-information-hub-mcp@latest"],
"type": "stdio",
"env": {
"BASE_URL": "<user input>",
"API_USERNAME": "<user input>",
"API_PASSWORD": "<user input>",
"ENV_TYPE": "<user input>"
}
}
Security
API_PASSWORDis stored in VS Code Secret Storage.- The other variables are stored in the extension's global state.
Manual Reconfiguration
Run the following in the Command Palette:
industrial-information-hub-mcpindustrial-information-hub-mcp: clear saved credentialsindustrial-information-hub-mcp: reconfigure now