Skip to content

Add local dev feed scripts for testing the MCP server without nuget.org#95

Merged
Byggarepop merged 1 commit into
mainfrom
add-local-dev-feed-scripts
Jun 11, 2026
Merged

Add local dev feed scripts for testing the MCP server without nuget.org#95
Byggarepop merged 1 commit into
mainfrom
add-local-dev-feed-scripts

Conversation

@Byggarepop

Copy link
Copy Markdown
Owner

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.ps1 packs TokenSaver.Mcp as version 9.9.9-dev into nupkg/local-feed (gitignored) and evicts ~/.nuget/packages/tokensaver.mcp/9.9.9-dev, since dotnet tool execute never 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.ps1 smoke-tests the packed server over stdio (initialize handshake plus a minify_file call), so a build can be validated without restarting the MCP client.

The scripts pair with an mcpServers entry that pins --version 9.9.9-dev and 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.

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]>
@Byggarepop
Byggarepop merged commit 2eeaa73 into main Jun 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant