Skip to content

stallent/hummingbird-mcp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hummingbird_mcp

Very basic example of an MCP server using

note: currently using a fork of modelcontextprotocol/swift-sdk that adds needed code to support this. Will update as it makes its way back into main repo

Running...

Run the example app as you would any hummingbird app

swift run ExampleMCPApp

run the standard MCP Inspector

npx @modelcontextprotocol/inspector

Set transport type to Streamable HTTP and connect to: http://127.0.0.1:8080/mcp/streamer

Usage:

    router.addRoutes(
        StreamableMCPController(path:"mcp/streamer",
                                stateful: true,
                                jsonResponses: false) {
                                    return await Server.configured()
                                }.endpoints
    )

The closure is how a server instance is created.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published