No description
Find a file
2025-04-29 13:31:22 +09:00
src Fix utils_test.ts 2025-04-29 12:50:09 +09:00
tests Add test coverage 2025-04-29 13:31:22 +09:00
.denoignore Add .denoignore file and update implementation plan with additional tasks for type safety, dependency management, testing, documentation, and build configuration. 2025-04-29 03:42:59 +09:00
.gitignore Improve test coverage 2025-04-29 12:00:12 +09:00
.prettierignore format 2025-03-24 10:48:46 +00:00
.prettierrc Ported v0.0.4 from mcp-remote-examples 2025-03-20 11:11:45 +11:00
deno.json Update version numbers in configuration files to reflect new release: change Deno project version to 0.0.1 in deno.json and update package version to 0.1.0 in package.json. Adjust version constant in utils.ts accordingly. 2025-04-29 11:51:31 +09:00
deno.lock Add test coverage 2025-04-29 13:31:22 +09:00
implementation_plan.md Fix tests 2025-04-29 10:11:22 +09:00
LICENSE Ported v0.0.4 from mcp-remote-examples 2025-03-20 11:11:45 +11:00
package.json Update version numbers in configuration files to reflect new release: change Deno project version to 0.0.1 in deno.json and update package version to 0.1.0 in package.json. Adjust version constant in utils.ts accordingly. 2025-04-29 11:51:31 +09:00
README.md Configure Deno project 2025-04-29 02:51:21 +09:00
README.original.md Configure Deno project 2025-04-29 02:51:21 +09:00

mcp-remote-deno

A Deno wrapper for the mcp-use proxy server that connects to remote MCP (Model Context Protocol) servers.

Features

  • Runs natively in Deno, utilizing NPM compatibility
  • Provides a clean CLI interface
  • Supports custom HTTP headers
  • TypeScript type definitions included

Prerequisites

  • Deno 1.37.0 or higher

Installation

No installation is needed! You can run the CLI directly using Deno:

# Run from GitHub (replace {VERSION} with the latest version or main)
deno run --allow-net --allow-env --allow-read https://raw.githubusercontent.com/yourusername/mcp-deno/{VERSION}/cli.ts <server-url> [callback-port]

# Or clone the repository and run locally
git clone https://github.com/yourusername/mcp-deno.git
cd mcp-deno
deno task start <server-url> [callback-port]

Usage

# Basic usage with default callback port (3334)
deno task start https://your-mcp-server.com

# Specify a custom callback port
deno task start https://your-mcp-server.com 8080

# Include custom HTTP headers
deno task start https://your-mcp-server.com --header "Authorization: Bearer token" --header "X-Custom: Value"

API

You can also use the library programmatically in your Deno projects:

import { startProxy, runProxy } from "https://raw.githubusercontent.com/yourusername/mcp-deno/{VERSION}/mod.ts";

// Using the wrapped function
await startProxy("https://your-mcp-server.com", 3334, {
  "Authorization": "Bearer token"
});

// Or using the direct import from mcp-use
await runProxy("https://your-mcp-server.com", 3334, {
  "Authorization": "Bearer token"
});

Development

# Run in development mode with auto-reload
deno task dev https://your-mcp-server.com

# Check types
deno check mod.ts cli.ts

# Format code
deno fmt

How It Works

This project uses Deno's NPM compatibility feature to directly import and use the mcp-use package without the need for Node.js or a subprocess. It wraps the functionality in a Deno-friendly API with TypeScript type definitions.

License

MIT - See the LICENSE file for details.