8000 GitHub - noredistribution/mcp-cvp-fun
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

noredistribution/mcp-cvp-fun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MCP Server Demo with Arista CloudVision

Warning

Please note that this is not officially supported by Arista.

You might not want to do this in your production environment as it is not using a local LLM.

The free plan of Claude might cause anxiety!

Kudos to @burnyd for the inspiriation and for writing this blog post: https://danielhertzberg.net/posts/mcp-servers/

Expanding on that, I've added a few more API calls to be able to ask Claude to get connectivity monitor data, and create tags for Studios and dashboards, but obviously any API call can be added very easy with the @mcp.tool() decorator.

To learn more about MCP please visit https://modelcontextprotocol.io/introduction.

Example usage

1. Create a .env file like the following.

CVPTOKEN="Insert CloudVision Service account token here"
CVP="www.arista.io"

2. Download Claude Desktop

3. In Claude's developer settings update the claude_desktop_config.json and tell it to run your script like below:

{
  "mcpServers": {
    "CVP MCP Server": {
      "command": "uv",
      "args": [
        "run",
        "--with",
        "fastmcp",
        "fastmcp",
        "run",
        "/home/ansible/mcp-cvp-fun/mcp_server_rest.py"
      ]
    }
  }
}

4. Reload Claude and start prompting

creattag

How to generate service account tokens

Service accounts can be created from the Settings page where a service token can be generated as seen below:

serviceaccount1 serviceaccount2 serviceaccount3

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0