graphql/

directory
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2025 License: Apache-2.0

README

GraphQL Upstream Example

This example demonstrates how to configure MCP Any to connect to a GraphQL upstream service.

Running the Example

  1. Start the GraphQL server:

    go run ./upstream_service/graphql/server/server.go
    
  2. Start the MCP Any server with the GraphQL configuration:

    make run ARGS="--config-paths ./upstream_service/graphql/config.yaml"
    
  3. Call the hello tool:

    curl -X POST -H "Content-Type: application/json" \
      -d '{"jsonrpc": "2.0", "method": "tools/call", "params": {"name": "graphql-hello", "arguments": {}}, "id": 1}' \
      http://localhost:50050
    

Directories

Path Synopsis
Package main implements a GraphQL upstream service demo.
Package main implements a GraphQL upstream service demo.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL