Skip to main content
Glama
BUCK1.63 kB
load( "@prelude-si//:deno.bzl", "deno_format", "deno_test", ) load( "@prelude-si//:macros.bzl", "alias", "deno_binary", "docker_image", "export_file", ) deno_binary( name = "si-function-tester-server", main = "server.ts", srcs = glob([ "*.ts", ]), permissions = [ "allow-all", ], ) deno_binary( name = "si-function-tester-client", main = "client.ts", srcs = glob([ "*.ts", ]), permissions = [ "allow-read", "allow-net", ], ) deno_format( name = "fix-format", srcs = glob( ["**/*.ts"], exclude = ["examples/**"], ), ) deno_format( name = "check-format", srcs = glob( ["**/*.ts"], exclude = ["examples/**"], ), check = True, ) # There are no unit tests for this. This tricks the build # system into building the binary as its unit test suite which will force a lint and basic compile # correctness check. alias( name = "test-unit", actual = ":si-function-tester-server", ) # Export source files for Docker image export_file( name = "types.ts", ) export_file( name = "mocks.ts", ) export_file( name = "runner.ts", ) export_file( name = "index.ts", ) export_file( name = "server.ts", ) export_file( name = "deno.json", ) docker_image( name = "image", image_name = "si-function-tester", flake_lock = "//:flake.lock", srcs = { ":types.ts": ".", ":mocks.ts": ".", ":runner.ts": ".", ":index.ts": ".", ":server.ts": ".", ":deno.json": ".", }, )

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/systeminit/si'

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