eliza icon indicating copy to clipboard operation
eliza copied to clipboard

Add Model Context Protocol (MCP) Support

Open shanejonas opened this issue 1 year ago • 4 comments

Is your feature request related to a problem? AI agents lack standardized context management, making it difficult to maintain consistent context across different models and systems.

Describe the solution Implement Model Context Protocol (MCP) to enable:

Standardized context state handling Efficient context updates Cross-model compatibility

shanejonas avatar Dec 04 '24 16:12 shanejonas

https://github.com/punkpeye/awesome-mcp-servers

bukit-kronik avatar Dec 07 '24 08:12 bukit-kronik

What does "adding support" look like though?

I'm a contributor to the official MCP project and it's geared towards allowing something like Claude desktop to connect to various services, which eliza already does. Does converting to this standard protocol enhance that at all? I'm not sure.

Based on the extensive MCP documentation provided, here are some hypothetical benefits of integrating MCP into this codebase:

  1. Standardized AI-System Communication

    • The codebase could leverage MCP's standardized protocol for communication between the AI (Claude) and various system resources
    • This would provide a more structured and secure way to handle interactions compared to custom implementations
  2. Resource Management

    • MCP's resource system could help manage character files and data in a standardized way
    • Characters could be exposed as MCP resources with proper MIME types and metadata
    • Real-time updates to character data could leverage MCP's resource subscription system
  3. Tool Integration

    • MCP tools could provide standardized ways to:
      • Read/write character files
      • Validate character data
      • Perform character-related operations
      • Handle file system operations securely
    • Tools could be exposed with clear schemas and descriptions for the AI to understand
  4. Security Benefits

    • MCP's security model would provide better isolation and control over what the AI can access
    • Built-in validation and sanitization of inputs
    • Controlled access to file system and other resources
    • Clear error handling patterns
  5. Development Benefits

    • Better debugging capabilities through MCP Inspector
    • Standardized logging and error reporting
    • Clear separation between AI capabilities and system operations
    • Type safety through SDK integrations
    • Built-in progress reporting for long operations
  6. Extensibility

    • Easy addition of new capabilities through MCP servers
    • Potential to integrate with other tools and services
    • Standardized way to add new features that interact with the AI
  7. Testing & Maintenance

    • Better testing capabilities through MCP Inspector
    • Clear protocol specifications make maintenance easier
    • Standard patterns for error handling and logging
    • Built-in tools for debugging and monitoring

This would represent a shift from custom implementations to a standardized protocol, potentially making the codebase more maintainable and extensible while improving security and reliability.

sirkitree avatar Dec 07 '24 17:12 sirkitree

can someone share an example (if code that would be fantastic!) that if using MCP "X", then Eliza's "Y" part can be beneficial for developer to solve the problem "Z"?

tsubasakong avatar Dec 11 '24 23:12 tsubasakong

This issue has been automatically marked as stale due to 30 days of inactivity. If no further activity occurs within 7 days, it will be closed automatically. Please take action if this issue is still relevant.

github-actions[bot] avatar Jan 11 '25 18:01 github-actions[bot]

how to implement that in eliza? this would be super useful. see cline success!

dontriskit avatar Jan 13 '25 21:01 dontriskit

Up

RomualdH avatar Feb 23 '25 08:02 RomualdH

how to implement that in eliza? this would be super useful. see cline success!

As a plugin! with a listener on an adapter

boltzj avatar Feb 26 '25 23:02 boltzj

up

r4topunk avatar Mar 12 '25 15:03 r4topunk

would be great to see this implemented.

ccamel avatar Mar 18 '25 07:03 ccamel

up

alotth avatar Apr 01 '25 15:04 alotth

up only :)

elmariachi111 avatar Apr 03 '25 09:04 elmariachi111

Is this in yet?

JussCubs avatar Apr 04 '25 09:04 JussCubs

Not planned? weird

4tal avatar Apr 17 '25 07:04 4tal

up...

qafariamirhossein avatar May 03 '25 15:05 qafariamirhossein