gitingest icon indicating copy to clipboard operation
gitingest copied to clipboard

feat: MCP server to provide gitingest as a set of tools

Open qdrddr opened this issue 9 months ago • 15 comments

MCP Server that intagrates gitingest and provedes its as a set of tools for development copilots such as Roo-Code/Cline.

Would be greate also having /sse endpoint for the docker implementation.

qdrddr avatar Mar 28 '25 16:03 qdrddr

That's a good idea I don't really know where to start but happy to discuss the implementation of an official mcp server

cyclotruc avatar Apr 03 '25 06:04 cyclotruc

Here are a couple of MCP Server examples. They are very simple applications, mostly its just descriptions of APIs or commandline commands that explains to LLM what each command can do, so it can select from the list of available tools to use for the user request.

https://github.com/modelcontextprotocol/servers/tree/main/src/git https://modelcontextprotocol.io/examples

https://github.com/davidkingzyb/SCAST

qdrddr avatar Apr 05 '25 01:04 qdrddr

Also you might need to consider to implement some caching echanism so if the git repo was not modified you would not run the app again with each MCP Client tool use.

qdrddr avatar Apr 05 '25 01:04 qdrddr

For example here you can see simple descriptions of the available tools (read function in your main app) with text explaining to the LLM how to use it. And then simple wrapper functions the MCP Client will be calling that just execute those function/tools from your main code. @cyclotruc

https://github.com/modelcontextprotocol/servers/blob/main/src/git/src/mcp_server_git/server.py

qdrddr avatar Apr 07 '25 13:04 qdrddr

If you can help me with this, I can do a PR for you. Can we connect in LikedIn or Discord (my username is qdrddr)? @cyclotruc

qdrddr avatar Apr 08 '25 21:04 qdrddr

Hi @qdrddr, I'd be happy to colaborate on this

I sent you a message on LinkedIn

cyclotruc avatar Apr 09 '25 20:04 cyclotruc

MCP needs to be paid, it's essentially text tool as an API call for LLMs, give the funding and it can happen or you need to implement an API keycall that's paid

davidwarshawsky avatar Apr 12 '25 21:04 davidwarshawsky

Interesting topic. Did you start to develop something? I was thinking it could be nice to have a tool that provides the structure of the repo and can be used for filtering.

Another thing, maybe using prompts to kick the ingest could be an interesting solution because it allows inputs to be passed; but if there are some tools that help to filter what to ingest, tools are the way to go.

Potentially passing a GitHub token could allow private repos.

Even though Python is not my first code language, I am happy to contribute.

sonomirco avatar Apr 21 '25 08:04 sonomirco

If cline or other mcp clients support this mcp tool, it can automatically analyze code issues. Is there anything I can help you?

volcano98 avatar Jun 20 '25 18:06 volcano98

Ye can try this MCP: https://github.com/TrelisResearch/trelis-gitingest-mcp

See this video here: https://www.youtube.com/watch?v=fLKH8HefqSo

Since the video, now supports a max_tokens argument (and will support private repos once gitingest does the next PyPI release).

RonanKMcGovern avatar Jun 25 '25 10:06 RonanKMcGovern

@RonanKMcGovern Nice work! fyi 0.1.5 is now out on PyPi

cyclotruc avatar Jun 27 '25 02:06 cyclotruc

Great, yeah I merged that update into the MCP repo I made.

Maybe there's stuff you or someone can grab or fork or learn from.

Probably there are other ways to do it too

RonanKMcGovern avatar Jun 27 '25 02:06 RonanKMcGovern

Hi there! We haven’t seen activity here for 45 days, so I’m marking this issue as stale. If you’d like to keep it open, please leave a comment within 10 days. Thanks!

github-actions[bot] avatar Aug 11 '25 06:08 github-actions[bot]

Hi there! We haven’t seen activity here for 45 days, so I’m marking this issue as stale. If you’d like to keep it open, please leave a comment within 10 days. Thanks!

github-actions[bot] avatar Oct 07 '25 06:10 github-actions[bot]