Skip to content

feat: add MCP support #963

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ibuildthecloud
Copy link
Contributor

@ibuildthecloud ibuildthecloud commented Apr 19, 2025

Example

chat: true
tools: arbtrary-tool-name

You're an expert at SQLite. Ask the user how you can help them.

---
name: arbtrary-tool-name

#!mcp
{
  "mcpServers": {
    "sqlite": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "-v",
        "mcp-test:/mcp",
        "mcp/sqlite",
        "--db-path",
        "/mcp/test.db"
      ]
    }
  }
}

@ibuildthecloud ibuildthecloud marked this pull request as draft April 19, 2025 05:19
@ibuildthecloud ibuildthecloud changed the title chore: add MCP support feat: add MCP support Apr 19, 2025
@cloudnautique
Copy link
Contributor

While testing this out I ran into two issues

  1. Gptscript created a new docker instance per tool call, it's supposed to reuse the same container.
  2. It was not able to get the output from the tool, not sure why.
Name: gitops
Tools: gitlab
Chat: true

---
Name: gitlab

#!mcp
{
  "mcpServers": {
    "gitlab": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "-e",
        "GITLAB_PERSONAL_ACCESS_TOKEN",
        "-e",
        "GITLAB_API_URL",
        "mcp/gitlab"
      ],
      "env": {
        "GITLAB_PERSONAL_ACCESS_TOKEN": "xxxxxx",
        "GITLAB_API_URL": "http://gitlab.cloudnautique.com:8929/api/v4"
      }
    }
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants