Repository navigation
endnote-for-word 1.3.0
Added
- PowerShell 7 auto-install. When the bridge runs under Windows PowerShell 5.1, no
pwsh.exe
exists and no host is pinned, it installs PowerShell 7 for the current user with
winget install --id Microsoft.PowerShell --scope user --installer-type msix, which needs no
administrator rights. winget runs silently with--accept-package-agreements --accept-source-agreements, so the winget source and package agreements are accepted on the
user's behalf, and the notice says so.- Read-only calls (
probe,list-styles,validate) never install. Each one returns a
pendingnotice, orunavailablewhen winget is missing, until the first other call. - The first other call (
render,update,set-style,unformat,configure-defaultsor
import-ris) starts the install in the background and keeps running under 5.1. - From then on each state change (installing, succeeded, failed, unavailable) is reported once
aspowershell_notice, and the agent is told to relay every notice to the user. - One attempt is made per user. State and the winget log live in
%LOCALAPPDATA%\EndNoteForWordAgent. - Set
ENDNOTE_WORD_AUTO_INSTALL_PWSH=0, or pin a host withENDNOTE_WORD_POWERSHELL, to
opt out.
- Read-only calls (
- The MCP server and
invoke-bridge.ps1resolve the PowerShell host on every call and also find
PowerShell 7 at its per-user app execution alias, so a newly installed PowerShell 7 takes over
without a restart. Apowershell_noticealso survives an MCP timeout. scripts/package_plugin.pyalso builds the standalone skill package
dist/endnote-for-word.skillwith its SHA-256 file, and CI uploads it. The Claude Desktop
instructions now use it.- Troubleshooting entries for a
SaveAs2call that never returns and for the Word recovery state
that a forced kill leaves behind.
Changed
- The shipped MCP launch command (
.mcp.json,.codex-mcp.json, and the registration commands
in the READMEs and the installation reference) ispowershell.exe, which every supported
Windows has, so the server starts before PowerShell 7 exists. The bridge still prefers
PowerShell 7 when it is installed. scripts/run-mcp.ps1only checks that a PowerShell host exists. It no longer exports the host
it found asENDNOTE_WORD_POWERSHELL, which now pins the host only when set explicitly.- Manifests, agent defaults and RIS files are decoded as strict UTF-8 with an optional byte order
mark. Input that is not valid UTF-8, such as UTF-16 with a byte order mark or Latin-1, is
rejected with "could not be read as UTF-8 text" instead of being parsed into corrupted author
names. Most cp950 and cp936 text fails the same way, but legacy bytes that happen to form valid
UTF-8 cannot be detected. The DOI and library precheck reports the same message. - Resolved paths in JSON results are plain, full file system paths.
Fixed
- Under Windows PowerShell 5.1, Word's
SaveAs2stalled when given an uncastJoin-Pathpath
(measured on Word 16.0.20430 with EndNote 21.5), so the save step thatrender,update,
set-styleandunformatshare hung until the watchdog killed Word (observed with
render). The bridge now passes the save path as a plain string. Found while investigating
#1 by @G-C-M-G. - Manifests with non-ASCII text failed to parse under Windows PowerShell 5.1 on a non-UTF-8 code
page. Based on #1 by @G-C-M-G. - The bridge deadlocked when a child process wrote more than 4 KB to stderr.
- UNC and
\\?\paths reached Python, Word and .NET in the provider-qualified
Microsoft.PowerShell.Core\FileSystem::form that none of them can open. - The
unformat"never in place" guard could be bypassed through an 8.3 short-name alias of the
input, or with the same UNC path on both sides. - The MCP render timeout ignored the citation count of a manifest saved with a byte order mark.
- A precheck failure without a problem list no longer prefixes the error with an empty entry.
Assets
endnote-for-word-plugin.zip: the whole repository, for plugin-aware hosts. SHA-256866cafc3a6994aafa70fa5bce56b40936cd2ad7c04604b52a1ede5c8cf8004e3endnote-for-word.skill: standalone skill for Claude Desktop Customize > Skills. SHA-25692ee1a8969436417819db9430e06ff7e23b1d38d9f00fbf8a4ba53fc46cc6bbb
Each asset has a .sha256 file beside it. Full history in CHANGELOG.md.