How googlecloudplatform/apigee-samples works
Apigee Samples is a collection of deployable API-proxy and integration examples, not one unified application. A developer selects a use case and runs its proxy or service; the sampled MCP server has a more specific flow: fetch API-product specifications, generate MCP tools, then invoke the described APIs. The graph also preserves the API Hub, LLM, gRPC, and proxy-capability branches represented in the tree. Some sample behavior is unsampled, so those branches are shown without inferred runtime links.
Main entry points: index.ts MCP server · main.go gRPC-web entry · ProtobufDecoder.java Protobuf decoder · api.ts Product API client
Components 25
MCP API tools
- MCP server
apigee-mcp/src/index.ts - Product API client
apigee-mcp/src/api.ts - OpenAPI tool generation
apigee-mcp/src/openapi_tools.ts - API tool executor
apigee-mcp/src/mcp_api_executor.ts - API product service
gRPC examples
- gRPC-web entry
grpc-web/app/cmd/main.go - gRPC server
grpc-web/app/pkg/grpc/server.go - gRPC-web adapter
grpc-web/app/pkg/grpc-web/server.go - Protobuf decoder
grpc-web/callout/src/main/java/com/google/apigee/callouts/ProtobufDecoder.java - Variable resolver
grpc-web/callout/src/main/java/com/google/apigee/callouts/util/VarResolver.java - Debug variables
grpc-web/callout/src/main/java/com/google/apigee/callouts/util/Debug.java - Plaintext gRPC extension
extension-processor-grpc/backend/cmd/plaintext/grpc.go
API Hub plugins
- AWS API Gateway plugin
apihub-plugins/aws/apigateway/index.mjs - Azure APIM plugin
apihub-plugins/azure/apim/src/functions/onrampApimSync.js
LLM examples
- LLM function calling
llm-function-calling/proxybundles/llm-function-calling-v1/apiproxy/resources/jsc/JS-Products.js - LLM semantic cache
llm-semantic-cache/semantic-cache-response-v1/sharedflowbundle/resources/jsc/CalculateExpTime.js - Vertex AI agent
llm-vertexai-agent/apiproxy/resources/jsc/JS-Products.js
Proxy capabilities
- Token authorization
authorize-idp-access-tokens - Caching and quota
basic-caching - Traffic controls
spike-arrest - Property-set headers
property-set/apiproxy/resources/jsc/JS-SetHeadersUsingPropertySet.js - Path-based decomposition
monolith-to-microservices-based-on-paths/apiproxy/resources/jsc/pathMatcher.js - Cloud Functions backend
cloud-functions/app/app.js - Cloud Run backend
cloud-run/app/app.js
Other components
- API developer
Connections 25
- API developer → MCP server: starts server
apigee-mcp/src/index.ts - MCP server → Product API client: fetches specs
apigee-mcp/src/index.ts - MCP server → OpenAPI tool generation: generates tools
apigee-mcp/src/index.ts - MCP server → API tool executor: dispatches tools
apigee-mcp/src/index.ts - Product API client → API product service: requests specifications
- API tool executor → API product service: calls target API
- API developer → gRPC-web entry: runs example
README.md - gRPC-web entry → gRPC server: starts
grpc-web/app/cmd/main.go - gRPC-web entry → gRPC-web adapter: starts
grpc-web/app/cmd/main.go - gRPC-web adapter → gRPC server: wraps requests
grpc-web/app/pkg/grpc-web/server.go - Protobuf decoder → Variable resolver: resolves variables
grpc-web/callout/src/main/java/com/google/apigee/callouts/ProtobufDecoder.java - Protobuf decoder → Debug variables: initializes
grpc-web/callout/src/main/java/com/google/apigee/callouts/ProtobufDecoder.java - API developer → Plaintext gRPC extension: runs example
README.md - API developer → AWS API Gateway plugin: uses plugin
README.md - API developer → Azure APIM plugin: uses plugin
README.md - API developer → LLM function calling: runs example
README.md - API developer → LLM semantic cache: runs example
README.md - API developer → Vertex AI agent: runs example
README.md - API developer → Token authorization: selects proxy
README.md - API developer → Caching and quota: selects proxy
README.md - API developer → Traffic controls: selects proxy
README.md - API developer → Property-set headers: selects proxy
README.md - API developer → Path-based decomposition: selects proxy
README.md - API developer → Cloud Functions backend: runs backend example
README.md - API developer → Cloud Run backend: runs backend example
README.md