MCP Agent

MCP Agent

By justinhuang0208 GitHub

This is a LaunchBar version of Raycast's AI extension function, which is integrated with Langchain and MCP to automatically complete tasks based on your prompt.

Overview

what is MCP Agent?

MCP Agent is a LaunchBar action that integrates with Langchain and MCP to automatically complete tasks based on user prompts.

how to use MCP Agent?

To use MCP Agent, configure your environment by adding a .env file with your LLM API key and an mcp_config.json file to set up your MCP. The mcp_config.json should define commands and arguments for filesystem and fetch operations.

key features of MCP Agent?

  • Automatic task completion based on prompts
  • Integration with Langchain and MCP
  • Customizable configuration through JSON files

use cases of MCP Agent?

  1. Automating repetitive tasks in development workflows.
  2. Enhancing productivity by providing autocomplete suggestions for MCP server names.
  3. Streamlining file system operations through command execution.

FAQ from MCP Agent?

  • What is required to set up MCP Agent?

You need to create a .env file for your API key and an mcp_config.json file for configuration.

  • Can I customize the commands in MCP Agent?

Yes! You can modify the mcp_config.json and suggestions.js files to suit your needs.

  • Is MCP Agent free to use?

Yes! MCP Agent is open-source and available for free.

Content

MCP Agent

This is a Launchbar action integrated with Langchain and MCP to automatically complete tasks based on your prompt.

Configuration

Before using the application, ensure that you add a .env file to configure your LLM API key. Additionally, include an mcp_config.json file to set up your MCP.

The mcp_config.json should format like this:

{
  "filesystem": {
    "command": "npx",
    "args": [
      "-y",
      "@modelcontextprotocol/server-filesystem",
      "/your/folder/path1",
      "/your/folder/path2"
    ]
  },
  "fetch": {
    "command": "uvx",
    "args": [
      "mcp-server-fetch"
    ]
  }
}

The suggestions.js file is designed to activate autocomplete when you type "@", providing suggestions for the MCP server names. Furthermore, this function dynamically loads only the MCP server associated with the tool name you've specified. You have the flexibility to modify the keyword section within suggestions.js to align with the MCP server you have installed or to alter its name if you want.

No tools information available.
No content found.