Skip to content
This repository was archived by the owner on Jun 3, 2026. It is now read-only.

feat: add MCP support#963

Draft
ibuildthecloud wants to merge 1 commit into
gptscript-ai:mainfrom
ibuildthecloud:main
Draft

feat: add MCP support#963
ibuildthecloud wants to merge 1 commit into
gptscript-ai:mainfrom
ibuildthecloud:main

Conversation

@ibuildthecloud

@ibuildthecloud ibuildthecloud commented Apr 19, 2025

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants