Repository navigation
Add an MCP server plugin for AI assistants - #196
Merged
Merged
Conversation
The plugin serves MCP over Streamable HTTP on localhost from inside the GUI, using HttpListener and the stream-based transport of ModelContextProtocol.Core, since the ASP.NET Core package needs a shared framework the GUI doesn't load. Only three sample tools so far. docs/plans/mcp-server-plugin.md records what the prototype verified and how to finish it: the IRemoteControlHost extension for editing entries and submitting worklogs, the tools, tests and release steps.
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.
AI assistants such as Claude Code had no way to read or control work tracking. This adds a plugin that runs an MCP server inside the GUI.
What changes
WorkTracker.Plugin.Mcpplugin serves MCP over Streamable HTTP athttp://localhost:47821/mcp, only while the GUI is running and the plugin is enabled. The port is configurable, and a port already in use is reported to the user.Allow submitting worklogsthesubmit_worklogstool isn't offered at all.Origin. The settings fill in a random token.Authorizationheader with a copy button each. Any plugin can offer them through the newIConnectionDetailsProvider.Other changes:
IRemoteControlHostcan list entries, update their text, and list providers, preview and submit worklogs.RemoteControlCoordinatorshows the user when a remote control plugin can't be attached, which also covers Stream Deck.WorklogSubmissionOrchestratortoSubmissionStatusLocalization.docs/plugins/mcp.md.Compatibility
IRemoteControlHostgot new members. Only the application implements it, so existing plugins are not affected.Testing