{"id":26985910,"url":"https://github.com/fangyinc/mcpport","last_synced_at":"2025-04-03T18:38:14.125Z","repository":{"id":285680481,"uuid":"958306611","full_name":"fangyinc/mcpport","owner":"fangyinc","description":"mcpport — A lightweight gateway \u0026 registry for Model Context Protocol (MCP), enabling standardized connectivity for AI applications.","archived":false,"fork":false,"pushed_at":"2025-04-02T04:31:48.000Z","size":66,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-02T05:20:07.898Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fangyinc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-04-01T01:32:37.000Z","updated_at":"2025-04-02T04:26:23.000Z","dependencies_parsed_at":"2025-04-02T05:31:20.536Z","dependency_job_id":null,"html_url":"https://github.com/fangyinc/mcpport","commit_stats":null,"previous_names":["fangyinc/mcpport"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fangyinc%2Fmcpport","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fangyinc%2Fmcpport/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fangyinc%2Fmcpport/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fangyinc%2Fmcpport/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fangyinc","download_url":"https://codeload.github.com/fangyinc/mcpport/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247059959,"owners_count":20877071,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-03T18:38:13.634Z","updated_at":"2025-04-03T18:38:14.119Z","avatar_url":"https://github.com/fangyinc.png","language":"Python","funding_links":[],"categories":["Utilities"],"sub_categories":["Proxies and Gateways"],"readme":"# mcpport\n\nmcpport — A lightweight gateway \u0026amp; registry for Model Context Protocol (MCP), enabling standardized connectivity for AI applications.\n\n## Quick Start\n\n1. Start your MCP Gateway\n\n```bash\nuvx mcpport gateway\n```\n\nIt will start the gateway on port 8765 by default. And the common access points are:\n\n- `ws://localhost:8765/mcp/register` is the registration endpoint.\n- `http://localhost:8765/sse` is the event stream endpoint(`SSE`).\n- `http://localhost:8765/messages` is the message endpoint(`HTTP`).\n\n2. Register your MCP Server to the Gateway\n\n```bash\nuvx mcpport register \\\n--stdio \"npx -y @modelcontextprotocol/server-filesystem ./\" \\\n--gateway-url=\"ws://localhost:8765/mcp/register\" \\\n--server-name \"file\"\n```\n\nIt will register a MCP server named `file` to the gateway. The server is a simple file system server, which is implemented by `@modelcontextprotocol/server-filesystem`.\n\n\n## Authentication\n\nYou can use `--auth-token` to set the auth token for the gateway.\n\n```bash\nuvx mcpport gateway --auth-token \"my-token1\" --auth-token \"my-token2\"\n```\n\nThe default authentication method is `Bearer` token(Set to `Authorization` header). \n\nIf you set the auth token for the gateway, you need to set the same auth token for the MCP server when you register it.\n\n```bash\nuvx mcpport register \\\n--stdio \"npx -y @modelcontextprotocol/server-filesystem ./\" \\\n--gateway-url=\"ws://localhost:8765/mcp/register\" \\\n--server-name \"file\" \\\n--header \"Authorization: Bearer my-token1\"\n```\n\nAnd you must set the auth token for SSE connections. You can set the auth token in the `Authorization` header.\n\n\n## Advanced Usage\n\n1. Start Your MCP Gateway With `ipv6` Support\n\n```bash\nuvx mcpport gateway --host \"::\" --ipv6\n```\n\nOther options are also available, you can use `uvx mcpport gateway --help` to get more information.\n\nThere are some options for the gateway:\n\n- `--host` is the host of the gateway.\n- `--port` is the port of the gateway, default is `8765`.\n- `--ipv6` is to enable `ipv6` support, default is `false`.\n- `--log-level` is the log level of the gateway, default is `INFO`.\n- `--timeout-rpc` is the timeout of communication with the MCP server, default is `10s`.\n- `--timeout-run-tool` is the timeout to run the tool, default is `120s`.\n- `--sse-path` is the path of the event stream endpoint, default is `/sse`.\n- `--messages-path` is the path of the message endpoint, default is `/messages`.\n- `--auth-token` is the auth token for the gateway, (can be used multiple times).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffangyinc%2Fmcpport","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffangyinc%2Fmcpport","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffangyinc%2Fmcpport/lists"}