Skip to content

cdisdero/swift-version-mcp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

swift-version-mcp

My first MCP server written in a Swift Package

Depends on: https://github.com/modelcontextprotocol/swift-sdk

This was my implementation from this tutorial: https://www.artemnovichkov.com/blog/creating-mcp-servers-in-swift

In order to use the server in:

VSCode Github Copilot

  1. Edit ~/Library/Application\ Support/Code/User/settings.json in VSCode.
  2. Add this section for the server in the configuration:
    "mcp": {
        "servers": {
            "swift-version-mcp": {
                "type": "stdio",
                "command": "/Volumes/Shared/Code/swift-version-mcp/.build/debug/swift-version-mcp",
                "args": []
            }
        }
    },
  1. VSCode will display a small caption bar above the 'swift-version-mcp' server block you just added. Press the Start button to start the server.
  2. When you open a conversation with copilot, click on the 'Add Context...' button above the prompt line and choose Tools from the menu, then select the 'swift-version' server from the list presented.

Claude Desktop

  1. Edit ~/Library/Application\ Support/Claude/claude_desktop_config.json in VSCode.
  2. Add this section for the server in the configuration:
{
  "mcpServers": {
    "swift-version-server": {
      "type": "stdio",
      "command": "/Volumes/Shared/Code/swift-version-mcp/.build/debug/swift-version-mcp"
    }
  }
}
  1. Restart Claude Desktop.

About

My first MCP server written in Swift

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages