Skip to content

#244 Update ISHRemoteMcpServer to dual-era MCP 2026-07-28 stateless and legacy 2024-11-05 - #302

Draft
ChaitanyaRangu wants to merge 1 commit into
RWS:masterfrom
ChaitanyaRangu:fix/issue-244
Draft

ChaitanyaRangu wants to merge 1 commit into
RWS:masterfrom
ChaitanyaRangu:fix/issue-244

Conversation

@ChaitanyaRangu

Copy link
Copy Markdown

Summary

Makes ISHRemoteMcpServer dual-era for #244: modern MCP 2026-07-28 stateless requests plus the legacy initialize (2024-11-05).

  • server/discover; resultType: "complete" on modern ping/tools/list/tools/call; ttlMs/cacheScope on tools/list
  • Unsupported _meta protocol version -> -32022 with data.supported
  • tools/call: unknown tool -> -32602; execution errors -> isError: true
  • serverInfo is ISHRemoteMcpServer + module version
  • Register-IshRemoteMcpTool: title, strict schema for no-parameter tools

Testing

Extended Invoke-IshRemoteMcpHandleRequest.Tests.ps1 (modern, -32022, -32602, isError, legacy regression). Ran those tests standalone with pwsh 7.7.0 / Pester 6.2.0 under Set-StrictMode -Version Latest (dot-sourced function, PesterSetup and module mocks removed): 41/41 pass; the new tests fail against the old code. PSScriptAnalyzer: only a pre-existing unused-parameter warning. Not run: .NET build, full Pester suite (needs Windows + live server).

AI assistance

Written with Claude Code (Claude Sonnet 5.5); a human should review. Spec shapes were checked against modelcontextprotocol.io 2026-07-28 pages.

…s and legacy 2024-11-05

- Add server/discover, resultType, ttlMs/cacheScope, -32022 version gate
- tools/call: unknown tool -> -32602, execution errors -> isError true
- serverInfo uses ISHRemoteMcpServer and the module version
- Register-IshRemoteMcpTool: add title, strict schema for no-parameter tools
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