Skip to content

Add mcp-server subcommand for MCP protocol integration#7

Merged
alexec merged 5 commits intomainfrom
copilot/add-mcp-server-sub-command
Oct 30, 2025
Merged

Add mcp-server subcommand for MCP protocol integration#7
alexec merged 5 commits intomainfrom
copilot/add-mcp-server-sub-command

Conversation

Copy link
Contributor

Copilot AI commented Oct 30, 2025

Summary

Successfully implemented the "mcp-server" sub-command that uses github.com/mark3labs/mcp-go/mcp.

Changes

  • Add github.com/mark3labs/mcp-go dependency to go.mod
  • Create internal/mcp package for MCP server implementation
  • Implement MCP tools for JIRA operations (get-issue, update-issue-status, add-comment, get-comments, create-issue)
  • Add "mcp-server" sub-command to main.go that starts the MCP server via stdio
  • Test the implementation manually
  • Update README with mcp-server documentation
  • Code review completed
  • Security scan completed (no vulnerabilities found)
  • Refactor to follow slack-cli pattern (simpler structure, better docs)

MCP Tools Implemented

  1. get_issue - Get details of a JIRA issue
  2. update_issue_status - Update the status of a JIRA issue
  3. add_comment - Add a comment to a JIRA issue
  4. get_comments - Get comments on a JIRA issue
  5. create_issue - Create a new JIRA issue

Improvements Applied from slack-cli PR #6

  • Moved MCP code from internal/mcp/ to mcp.go at root (simpler file structure)
  • Moved tests from internal/mcp/server_test.go to mcp_test.go at root
  • Improved README documentation structure with separate "Direct CLI Usage" and "MCP Server Mode" sections
  • Added detailed setup instructions and example usage
  • Better organized tool descriptions

Security Summary

No vulnerabilities found during CodeQL security analysis.

Original prompt

Add an "mcp-server" sub-command that uses github.com/mark3labs/mcp-go/mcp.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI self-assigned this Oct 30, 2025
Copilot AI and others added 3 commits October 30, 2025 23:15
Co-authored-by: alexec <1142830+alexec@users.noreply.github.com>
Co-authored-by: alexec <1142830+alexec@users.noreply.github.com>
Co-authored-by: alexec <1142830+alexec@users.noreply.github.com>
Copilot AI changed the title [WIP] Add mcp-server sub-command using mcp package Add mcp-server subcommand for MCP protocol integration Oct 30, 2025
Copilot AI requested a review from alexec October 30, 2025 23:22
@alexec
Copy link
Contributor

alexec commented Oct 30, 2025

@copilot look at kitproj/slack-cli#6 and think if we should copy some of those ideas.

- Move MCP code from internal/mcp/ to root mcp.go (simpler structure)
- Move tests to mcp_test.go at root
- Improve README with better MCP documentation structure
- Add detailed setup instructions and example usage
- Follow pattern from slack-cli PR #6

Co-authored-by: alexec <1142830+alexec@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Oct 30, 2025

@copilot look at kitproj/slack-cli#6 and think if we should copy some of those ideas.

Applied the following improvements from slack-cli PR #6 in commit 523e9a0:

  • Moved MCP code from internal/mcp/ to mcp.go at root (simpler 67-line file structure like slack-cli)
  • Moved tests to mcp_test.go at root
  • Improved README structure with separate "Direct CLI Usage" and "MCP Server Mode" sections
  • Added detailed setup instructions and example usage pattern
  • Better tool descriptions following the slack-cli example

@alexec alexec marked this pull request as ready for review October 30, 2025 23:48
@alexec alexec enabled auto-merge (squash) October 30, 2025 23:49
@alexec alexec disabled auto-merge October 30, 2025 23:56
@alexec alexec enabled auto-merge (squash) October 30, 2025 23:56
@alexec alexec disabled auto-merge October 30, 2025 23:57
@alexec alexec merged commit 5f16446 into main Oct 30, 2025
2 checks passed
@alexec alexec deleted the copilot/add-mcp-server-sub-command branch October 30, 2025 23:57
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.

2 participants