Coordinated plan on supporting MCP for Vibe Coding and AI Agents

Hi all,

Would like to know if others are already working on MCP Servers and allowing them to augment AI on ICP context and actions.

Namely for coding, being nowadays used on Github Edits (Claude 3.7) and also for AI Agents.

It’s fast growing, and many have built MCP to integrate to it.

A few proofs:

On the behalf of ICP HUBs DevRels, we would like to either contribute or use them, since it’s important for bootcamps, hackathons and startups.

5 Likes

n8n and cursor also work with MCP, what kind of Automation would you be looking to use for the ICP Hubs?

For IDEs, definitely something that:

  • knows a lot like Kapa AI (the Internetcomputer.org AI). Allowing a chat experience to be as good as doing it on the website.
  • knows all the good examples from Dfinity in Rust, Typescript, Motoko, etc. Also from the frontend to integrate well, with Identity Kit, Token Transactions, maybe Governance Calls, etc. And therefore can suggest/review code, in that light. (But also community can add references, like on game dev, if someone is in Unity, the AI knows about .NET cdk to connect to the IC)
  • Maybe the SNSs can also give their docs and example repos as ways for others to connect / use them. Like ICP Swap, Neutrinite, Boom DAO, KongSwap, etc.
  • Lastly, also good references of Pocket IC usage across all these use cases, making it safer to use vibe coding.

Now, on the side of Agents, Dfinity and the community can add and expand on many actions / service uses of the IC, like:

  • all ICRC ledger actions;
  • calling services like:
  • price or Defi Vectors from Neutrinite;
  • swap or add/remove liquidity on ICP Swap;
  • bot reading and sending messages on OC;
  • etc.

Then novel integrations and use cases for the startups can appear, where an AI Agent studio (maybe Elna) could reuse these actions as UI blocks with configs and anyone can setup their personal canister Agent.

I have seen ElizaOS, and maybe there are other “function calling” framework/registries, but already this MCP one, seems to be gaining significant traction to be worth the investment of the IC community (and Dfinity).

CC to a few people that could be interested in this topic: @ielashi @marc0olo (can you let Justin Kennedy know? Couldn’t find his handle) @fxgst @patnorris

PS.: just discovered that Long Tran already built a first one related with Governance / SNS actions: RFP-9: ICP as Infra for AI Agent Frameworks · Issue #62 · dfinity/grant-rfps · GitHub @baolongt congrats :clap:

2 Likes

Hi @tiago89 , very interesting topic with many opportunities indeed :muscle:
in the DeAI group, we’ve had some discussions on MCP before but if you like we could put this on the agenda and talk about initiatives in more detail in an upcoming session then. What do you think?

2 Likes

Are you guy gonna talk about MCP this thursday? I would like to join

2 Likes

I would love to see the DeAI working group driving this topic. I do not have specific comments on this topic so far.

IMO, everything that helps devs and users to get a better experience in building on and using ICP tech is great and worth to explore.

for visibility, I am also sharing the demo that @baolongt created and shared on his github repo:

comments and feedback on this are appreciated :wink:

3 Likes

Thanks for bringing this topic up @tiago89. I’ve also been thinking about MCP support and how that could look like.

I wonder if there can be some generic way of wrapping the canister interfaces to be MCP tools. After all, each canister has an interface with all the methods it supports, and if developers document these methods well in the candid file, then in principle it should be quite easy for these to be be wrapped as MCP tools.

We could even explore integrating MCP with the LLM canister, so that you can also use these tools on-chain.

Curious to hear people’s thoughts.

3 Likes

I wonder is that a way to share delegation identity for MCP server.

In my demo, the way it work is I create new wallet with bip39 seed phrase and add it as hotkey to the neuron.

1 Like

Does the LLM Canister run Claude 3.5/7?

Hi @baolongt , would love to have you join :+1:
For this Thursday, we’ve got a couple of other topics planned but I’d like to have a dedicated session on MCP soon, maybe April 17.
Would you also be open to demo your work on the SNS Agent to the group during the MCP-focused call?

Hi @patnorris
Yeah it work for me

1 Like

awesome, let’s plan for April 17 then! I’ll be in touch for the details :+1: I’m looking forward to learning more about your work and the session

I’m not sure whether or not this will help, but check out this example which shows how an OISY wallet can give a delegation to another principal. Perhaps similar logic can be implemented in MCP?

Currently the LLM canister serves Llama 3.1 8B. More models will be supported soon, but not closed-source models unfortunately as those cannot be hosted in a trustless way.

2 Likes