Skip to main content
Glama

mcp_command-line_tool

by gengzi
Apache 2.0
2
  • Linux
  • Apple
McpServerApplication.java685 B
package com.gengzi; import com.gengzi.tool.ToolService; import org.springframework.ai.tool.ToolCallbackProvider; import org.springframework.ai.tool.method.MethodToolCallbackProvider; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.Bean; @SpringBootApplication public class McpServerApplication { public static void main(String[] args) { SpringApplication.run(McpServerApplication.class, args); } @Bean public ToolCallbackProvider weatherTools(ToolService toolService) { return MethodToolCallbackProvider.builder().toolObjects(toolService).build(); } }

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/gengzi/mcp_command-line_tool'

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