No description
Find a file
2025-04-29 04:11:34 +09:00
src Enhance Deno project with new test scripts, add testing commands to deno.json, and update implementation plan to reflect completed testing tasks. Introduce integration and unit tests for core functionalities including DenoHttpServer and mcp-auth-config. 2025-04-29 04:11:34 +09:00
tests Enhance Deno project with new test scripts, add testing commands to deno.json, and update implementation plan to reflect completed testing tasks. Introduce integration and unit tests for core functionalities including DenoHttpServer and mcp-auth-config. 2025-04-29 04:11:34 +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 Ported v0.0.4 from mcp-remote-examples 2025-03-20 11:11:45 +11: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 Enhance Deno project with new test scripts, add testing commands to deno.json, and update implementation plan to reflect completed testing tasks. Introduce integration and unit tests for core functionalities including DenoHttpServer and mcp-auth-config. 2025-04-29 04:11:34 +09:00
deno.lock Enhance Deno project with new test scripts, add testing commands to deno.json, and update implementation plan to reflect completed testing tasks. Introduce integration and unit tests for core functionalities including DenoHttpServer and mcp-auth-config. 2025-04-29 04:11:34 +09:00
implmentation_plan.md Enhance Deno project with new test scripts, add testing commands to deno.json, and update implementation plan to reflect completed testing tasks. Introduce integration and unit tests for core functionalities including DenoHttpServer and mcp-auth-config. 2025-04-29 04:11:34 +09:00
LICENSE Ported v0.0.4 from mcp-remote-examples 2025-03-20 11:11:45 +11:00
package.json 0.0.22 2025-04-16 15:59:57 +10:00
pnpm-lock.yaml 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
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
tsconfig.json fix types and pass build 2025-03-24 09:49:44 +00: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.