-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Eunomia library MCP Server #555
Eunomia library MCP Server #555
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome! lgtm
Once conflicts are resolved I'll re-approve and merge |
Hi Jerome, looks good on our side! Thanks! |
Hi @jerome3o-anthropic, could you please re-approve and merge? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome thanks!
Hey jfyi - I noticed that the formatting was wrong on main, so I fixed it here. I also moved it to the community section, as during my first loop here I had thought it was going into the community section. |
Description
Eunomia is an open-source Python library developed by What About You for data governance in Large Language Model (LLM) applications. It offers precise control over the data entering LLM-based applications by enforcing governance at the token level. Eunomia utilizes a modular set of instruments to address specific challenges, allowing for versatile combinations to support a wide variety of use cases.
Today, the integration of Eunomia with the Model Context Protocol (MCP) has been launched, significantly enhancing the ability to govern unstructured data flowing through MCP servers into enterprise LLM-powered applications.
Server Details
Motivation and Context
Eunomia MCP Server is an extension of the Eunomia framework that connects Eunomia instruments with MCP servers. It provides a simple way to orchestrate data governance policies (like PII detection or user access control) and seamlessly integrate them with external server processes in the MCP ecosystem.
How Has This Been Tested?
Tested with LLM client implementation reported in the modelcontextprotocol docs
Breaking Changes
Types of changes
Checklist
Additional context
Overview
Eunomia MCP Server is an extension of the Eunomia framework that connects Eunomia instruments with MCP servers. It provides a simple way to orchestrate data governance policies (like PII detection or user access control) and seamlessly integrate them with external server processes in the MCP ecosystem.
With Eunomia MCP Server, you can:
Get Started
Installation
Basic Usage
Eunomia MCP Server uses the same "instrument" concept as Eunomia. By defining your set of instruments in an
Orchestra
, you can apply data governance policies to text streams that flow through your MCP-based servers.Below is a simplified example of how to define application settings and run the MCP server with uv.
Running the Server
Once your settings are defined, you can run the MCP Orchestra server by pointing
uv
to the directory containing your server code, for example:uv --directory "path/to/server/" run orchestra_server
This will:
.env
or environment variables.PiiInstrument
) to the incoming text, ensuring data governance policies are automatically enforced.Further Reading
For more detailed usage, advanced configuration, and additional instruments, check out the following resources: