Add local dev feed scripts for testing the MCP server without nuget.org#95
Merged
Conversation
pack-local.ps1 packs TokenSaver.Mcp as 9.9.9-dev into nupkg/local-feed and evicts the NuGet package cache so rebuilds are picked up; test-local-mcp.ps1 smoke-tests the packed server over stdio (initialize + minify_file) without restarting the client. Pairs with a .claude.json entry that pins --version 9.9.9-dev and uses --source to resolve only from the local feed. Co-Authored-By: Claude Fable 5 <[email protected]>
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.
Adds a local development loop for the MCP server so changes can be tested without publishing to nuget.org and waiting for indexing.
scripts/pack-local.ps1packsTokenSaver.Mcpas version9.9.9-devintonupkg/local-feed(gitignored) and evicts~/.nuget/packages/tokensaver.mcp/9.9.9-dev, sincedotnet tool executenever re-fetches a cached version. If a running session locks the cached DLLs, the script fails with a clear message instead of half-clearing.scripts/test-local-mcp.ps1smoke-tests the packed server over stdio (initialize handshake plus aminify_filecall), so a build can be validated without restarting the MCP client.The scripts pair with an
mcpServersentry that pins--version 9.9.9-devand passes--source <repo>/nupkg/local-feed, which replaces all NuGet sources — startup never contacts nuget.org, and the fake version can never collide with a published package.