microsoft / microsoft/Dataverse-MCP
Unhandled exception: Value cannot be null (Parameter 'attributeKey1') during MCP proxy startup on Linux VS Code
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 65
- Forks
- 13
- PR merge metrics
- No merged PRs in 30d
Description
While starting the Microsoft.PowerPlatform.Dataverse.MCP local proxy on Linux (AlmaLinux 8.10), the process fails with an unhandled exception related to the MSAL library:
Logs:
Connection state: Starting
2025-08-01 20:05:16.736 [info] Connection state: Running
2025-08-01 20:05:19.731 [warning] [server stderr] Unhandled exception. System.ArgumentNullException: Value cannot be null. (Parameter 'attributeKey1')
2025-08-01 20:05:19.732 [warning] [server stderr] at Microsoft.Identity.Client.Extensions.Msal.LinuxKeyringAccessor..ctor(String cacheFilePath, String keyringCollection, String keyringSchemaName, String keyringSecretLabel, String attributeKey1, String attributeValue1, String attributeKey2, String attributeValue2, TraceSourceLogger logger)
2025-08-01 20:05:19.733 [warning] [server stderr] at Microsoft.Identity.Client.Extensions.Msal.Storage.Create(StorageCreationProperties creationProperties, TraceSource logger)
2025-08-01 20:05:19.734 [warning] [server stderr] at Microsoft.Identity.Client.Extensions.Msal.MsalCacheHelper..ctor(StorageCreationProperties storageCreationProperties, TraceSource logger, HashSet1 knownAccountIds, FileSystemWatcher cacheWatcher) 2025-08-01 20:05:19.734 [warning] [server stderr] at Microsoft.Identity.Client.Extensions.Msal.MsalCacheHelper.CreateAsync(StorageCreationProperties storageCreationProperties, TraceSource logger) 2025-08-01 20:05:19.735 [warning] [server stderr] at PowerPlatformMCPProxy.Auth.AuthenticationService.GetMsalClient() in C:\__w\1\s\src\MCPServers\PowerPlatformMCPProxy\Auth\AuthenticationService.cs:line 95 2025-08-01 20:05:19.735 [warning] [server stderr] at PowerPlatformMCPProxy.Auth.AuthenticationService..ctor(ILoggerFactory loggerFactory, String[] scopes, ConfigOptions configOptions, String environmentId, String cacheName, String clientId) in C:\__w\1\s\src\MCPServers\PowerPlatformMCPProxy\Auth\AuthenticationService.cs:line 35 2025-08-01 20:05:19.736 [warning] [server stderr] at PowerPlatformMCPProxy.Auth.AuthenticationServiceFactory.GetAuthenticationService(ILoggerFactory loggerFactory, String[] scopes, String environmentId, String cacheName, String clientId) in C:\__w\1\s\src\MCPServers\PowerPlatformMCPProxy\Auth\AuthenticationServiceFactory.cs:line 19 2025-08-01 20:05:19.736 [warning] [server stderr] at CMSClient..ctor(IHttpClientFactory httpClientFactory, ILoggerFactory loggerFactory, IHTTPLogger httpLogger, IAuthenticationServiceFactory authenticationServiceFactory, UrlConnectionDetails connectionDetails, ConfigOptions options, IRequestMessageBuilder requestMessageBuilder) in C:\__w\1\s\src\MCPServers\PowerPlatformMCPProxy\Clients\CMSClient.cs:line 31 2025-08-01 20:05:19.737 [warning] [server stderr] at CMSClientFactory.GetCMSClient(IHttpClientFactory httpClientFactory, ILoggerFactory loggerFactory, IHTTPLogger httpLogger, IAuthenticationServiceFactory authenticationServiceFactory, UrlConnectionDetails connectionDetails, ConfigOptions options, IRequestMessageBuilder requestMessageBuilder) in C:\__w\1\s\src\MCPServers\PowerPlatformMCPProxy\Clients\CMSClientFactory.cs:line 19 2025-08-01 20:05:19.737 [warning] [server stderr] at PowerPlatformMCPProxy.Runtime.MCPServerProxy.RunAsync() in C:\__w\1\s\src\MCPServers\PowerPlatformMCPProxy\Runtime\MCPServerProxy.cs:line 60 2025-08-01 20:05:19.737 [warning] [server stderr] at Program.<Main>$(String[] args) in C:\__w\1\s\src\MCPServers\PowerPlatformMCPProxy\Program.cs:line 35 2025-08-01 20:05:19.738 [warning] [server stderr] at Program.<Main>(String[] args) 2025-08-01 20:05:20.632 [info] Connection state: Error Process exited with code null 2025-08-01 20:05:20.634 [error] Server exited before responding to initialize` request.
Environment
OS: AlmaLinux 8.10 (RHEL-compatible)
.NET SDK: 8.0.412
MCP Tool Version: Latest available as of Aug 1, 2025
Shell: Bash
Execution Mode: VS Code GitHub Copilot integration via mcp.json
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in src/MCPServers/PowerPlatformMCPProxy/Auth/AuthenticationService.cs at line 95, then trace AuthenticationServiceFactory.cs and the MSAL cache creation shown in the stack trace. Reproduce startup on AlmaLinux 8.10 through the VS Code mcp.json flow and verify that the proxy reaches initialize without the null-parameter exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, linux, vscode
- Domain
- authentication, backend, devtools, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100