feat: add MCP (Model Context Protocol) server for elmclient#127
Open
filhocf wants to merge 2 commits intoIBM:masterfrom
Open
feat: add MCP (Model Context Protocol) server for elmclient#127filhocf wants to merge 2 commits intoIBM:masterfrom
filhocf wants to merge 2 commits intoIBM:masterfrom
Conversation
Adds a built-in MCP server that exposes ELM functionality as tools for AI assistants (Claude, GPT, Copilot, etc.). Tools provided: - list_projects: List accessible projects (ccm/rm/qm) - list_workitems: Query work items via OSLC - get_workitem: Get work item details Configuration via environment variables or ~/.elm_credentials.json. Closes IBM#125 Signed-off-by: Claudio Ferreira Filho <filhocf@gmail.com>
- Add 'mcp' extras_require for optional MCP support - Add 'elm-mcp-server' console_scripts entry point - Install with: pip install 'elmclient[mcp]' Signed-off-by: Claudio Ferreira Filho <filhocf@gmail.com>
a23426e to
b1d69e5
Compare
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.
Summary
Adds a built-in MCP (Model Context Protocol) server that exposes elmclient functionality as tools for AI assistants (Claude, GPT, Copilot, etc.).
Closes #125
What is MCP?
Model Context Protocol is an open standard for connecting AI assistants to external tools and data sources. It's supported by Claude, VS Code Copilot, and many other AI tools.
Changes
elmclient/mcp_server.py— MCP server with 3 tools:list_projects(domain)— List accessible projects (ccm/rm/qm)list_workitems(project, query, pagesize)— Query work items via OSLCget_workitem(project, id)— Get work item detailssetup.py— Added:extras_require={"mcp": ["mcp[cli]"]}— Optional dependencyelm-mcp-serverconsole_scripts entry pointInstallation
pip install 'elmclient[mcp]'Configuration
Via environment variables:
Or via
~/.elm_credentials.json:{"host": "https://...", "username": "...", "password": "..."}MCP Client Configuration
{ "mcpServers": { "elm": { "command": "elm-mcp-server", "env": { "ELM_HOST": "https://your-elm-server.com", "ELM_USER": "username", "ELM_PASSWORD": "password" } } } }Notes