Skip to main content
Glama

WiseVision/mcp_server_ros_2

by wise-vision
main.py1.14 kB
# # Copyright (C) 2025 wisevision # # SPDX-License-Identifier: MPL-2.0 # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at https://mozilla.org/MPL/2.0/. # import rclpy import argparse import asyncio from .server import app from .transport import TransportMixin try: import extensions # noqa print("Private extensions loaded successfully") except ImportError as e: print(f"{e}.\nRunning with public tools only") def main(): parser = argparse.ArgumentParser() parser.add_argument( "-t", "--transport", type=str, default="stdio", choices=["stdio", "sse"], help="Transport being use in MCP server", ) args, _ = parser.parse_known_args() transport: str = args.transport print(f'Starting MCP - ROS 2 server using "{transport}" transport') rclpy.init() try: transport_mixin = TransportMixin(app) transport_mixin.run(transport) finally: rclpy.shutdown() if __name__ == "__main__": main()

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/wise-vision/mcp_server_ros_2'

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