Skip to main content
Glama
s3hq4y
by s3hq4y

Portal

Portal

English · 简体中文

Portal は、現在のワークスペースを 公開 MCP エンドポイント として公開する VS Code 拡張機能です。意図的に小さく構成されており、コマンドとファイル転送のみです。

任意の MCP クライアント(Claude、ChatGPT、Cursor、カスタムエージェント、curl)をトンネル経由で自分のマシンに接続できます。エージェントはシェルを実行し、ファイルを移動できます。MCP ツールによるテキスト編集はできません — そのようなツールは存在しません。

提供されるもの

項目

役割

MCP Streamable HTTP

https://<tunnel>/mcp/<token>

ファイル HTTP API

https://<tunnel>/files/<token>/…(同じトークン)

サイドバー + 設定

Win10 風のフラットパネル: 開始/停止、URL コピー、トンネル状態

Portal Agent ターミナル

run_command の I/O をライブミラー(オプション)

Related MCP server: local-bridge

MCP ツール(ちょうど 5 つ)

ツール

説明

run_command

フォアグラウンドコマンド。既定のタイムアウトは 120 秒(最大 600 秒)。command + shell を使うか、シェル構文が不要な場合は executable + args(後者を推奨)。

start_command

長時間動作するプロセスを起動し、command_id と PID を返します。同時ジョブは最大 4 つ。

read_command

stdout/stderr をオフセット指定で段階的に取得。command_id を省略すると保持ジョブを一覧表示します。完了済みレコードは 10 分で失効します。

stop_command

バックグラウンド ジョブとそのプロセスツリーを停止(force は 2 秒の猶予期間をスキップ)。

file_transfer_info

公開ファイル API のベース URL、サイズ制限、curl の例を提供します。

シェル: powershell(Windows の既定)、pwshcmdbash/sh(Git Bash があればそれ)。UTF-8 は自動設定されます。

セッション: initialize で得られた Mcp-Session-Id を再利用してください。失われた場合や拒否された場合は、もう一度初期化してください — ID をでっち上げないでください。

read_file / write_file / edit_file / list_* / search_files ツールはありません。シェルまたは HTTP ファイル API を使って読み書きしてください。

ファイル転送(双方向 HTTP)

MCP と同じトンネルとトークンを使用します。既定の最大サイズは 64 MiBportal.maxTransferBytes)。アップロードは原子的に置換されます。ダウンロードは Range をサポートし、SHA-256 を返します。

GET    {base}?op=info              capability + workspace
GET    {base}?glob=**/*            list files
GET    {base}/<relpath>            download
HEAD   {base}/<relpath>            metadata
PUT    {base}/<relpath>            upload
DELETE {base}/<relpath>            delete
POST   {base}?op=pack              zip  JSON { "paths": ["src"] }
POST   {base}?op=unpack&dest=.     unzip (raw zip body)

無料の ngrok ドメインでは、ヘッダー ngrok-skip-browser-warning: 1 が必要です。

# download
curl -fsSL -H "ngrok-skip-browser-warning: 1" \
  "$BASE/README.md" -o README.md

# upload
curl -fsSL -H "ngrok-skip-browser-warning: 1" \
  -T ./photo.png "$BASE/incoming/photo.png"

# pack a folder
curl -fsSL -H "ngrok-skip-browser-warning: 1" \
  -H "Content-Type: application/json" \
  -d '{"paths":["src"]}' "$BASE?op=pack" -o src.zip

トンネルプロバイダー

プロバイダー

URL

説明

cloudflare-quick(デフォルト)

起動ごとにランダムな trycloudflare.com

すばやく試せる。安定性はない

cloudflare-named

固定ホスト名

保存済み Tunnel トークン、公開ホスト名、固定ローカルポートが必要

ngrok-reserved

予約済みドメイン(例: *.ngrok-free.dev

URL が永続

custom

独自コマンド、または既存の URL

プレースホルダー: {{port}} {{token}} {{workspace}}。コマンド空 + customTunnelUrl = アタッチモード

ルートトークンはシークレッ のパスセグメントです。MCP は /mcp/<token> にあります。portal.routeToken を空にすると、起動時に自動生成されます。

コマンド(パレット)

  • Portal: 開始 / 停止

  • Portal: URL をコピー

  • Portal: トンネルを確認

  • Portal: 設定

  • Portal: cloudflared をインストール / ngrok をインストール / アップグレード

  • Portal: ログを表示 / エージェントターミナルを表示

便利な設定: portal.startOnActivation(既定はオン)、portal.showCommandsInTerminalportal.localPort0 は自動。名前付き Cloudflare を除く)。

ビルド

Node 18 以上と VS Code ^1.95.0 が必要です。

npm install
npm run build      # esbuild → dist/extension.js
npm run typecheck
npm run package    # .vsix (no bundled node_modules)

パッケージした VSIX を読み込むか、デスクトップ版 VS Code ホストで拡張機能を実行します(extensionKind: ui + workspace)。

ライセンス

MIT

A
license - permissive license
Not graded
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
1Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    A
    maintenance
    Connects local tools (browser, shell) to a remote MCP server via reverse-MCP, enabling the server agent to control your local browser and execute shell commands.
    237
    Apache 2.0
  • A
    license
    Not graded
    quality
    A
    maintenance
    Exposes a local development project as a secure MCP server over a stable HTTPS URL via Cloudflare tunnel, with configurable access permissions and 33 development tools for file, command, Git, and process operations.
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables remote MCP clients like ChatGPT to run shell commands and manage files on your local machine via a Cloudflare tunnel, exposing tools for file operations, search, and task management.
    MIT

View all related MCP servers

Related MCP Connectors

  • A MCP server built for developers enabling Git based project management with project and personal…

  • An MCP server that let you interact with Cycloid.io Internal Development Portal and Platform

  • MCP server for interacting with the Supabase platform

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/s3hq4y/portal'

If you have feedback or need assistance with the MCP directory API, please join our Discord server