MCPcopy Create free account

hub / github.com/Lap-Platform/LAP / functions

Functions1,430 in github.com/Lap-Platform/LAP

↓ 119 callersMethodget
Get a LAP doc by name (exact or partial match).
sdks/python/lap/registry.py:23
↓ 112 callersMethodto_lap
(self, lean: bool = False)
lap/core/formats/lap.py:32
↓ 76 callersFunctionparse_lap
Parse LAP text into a LAPSpec object. Raises ParseError for structural issues (unmatched braces, lines exceeding size limits). Issues war
lap/core/parser.py:354
↓ 69 callersFunctiongenerate_skill
Generate a Claude Code skill directory from a LAPSpec. Returns a SkillOutput with file_map containing all files to write.
lap/core/compilers/skill.py:100
↓ 51 callersFunctioncompile_openapi
Compile an OpenAPI spec to LAP format.
lap/core/compilers/openapi.py:373
↓ 49 callersFunctioncompile_graphql
Compile a GraphQL SDL or introspection JSON file to LAP format.
lap/core/compilers/graphql.py:361
↓ 25 callersFunctioncmd_search
Search the LAP registry for APIs. No auth required.
lap/cli/main.py:1467
↓ 25 callersFunctioninfo
(msg)
lap/cli/main.py:64
↓ 20 callersFunctioncompile_asyncapi
Compile an AsyncAPI spec to LAP format.
lap/core/compilers/asyncapi.py:461
↓ 20 callersFunctioncompile_postman
Compile a Postman Collection v2.1 JSON to LAP format.
lap/core/compilers/postman.py:389
↓ 19 callersFunction_sanitize
Strip ANSI escapes and control characters from server-supplied strings.
lap/cli/main.py:42
↓ 19 callersFunctionerror
(msg)
lap/cli/main.py:76
↓ 18 callersFunction_format_search_results
Format and print search results.
lap/cli/main.py:1406
↓ 18 callersFunction_make_spec_v1
()
tests/test_differ.py:17
↓ 18 callersFunction_validate_search_response
Validate registry response shape before field access.
lap/cli/main.py:46
↓ 18 callersFunctioninfo
(msg: string)
sdks/typescript/src/cli.ts:64
↓ 18 callersFunctionparse_proto
Parse a .proto file text into a ProtoFile AST.
lap/core/compilers/protobuf.py:333
↓ 16 callersFunction_make_args
(**overrides)
tests/test_search.py:298
↓ 16 callersFunction_smithy_type_to_lap
Convert Smithy type to LAP type string. Handles: - Scalar types (String → str, Integer → int, etc.) - Collections (list → [type], ma
lap/core/compilers/smithy.py:281
↓ 16 callersFunctiondiff_specs
Diff two LAPSpec objects. Returns a DiffResult with all changes.
lap/core/differ.py:94
↓ 16 callersFunctionerror
(msg: string)
sdks/typescript/src/cli.ts:72
↓ 15 callersFunction_make_spec_v2
()
tests/test_differ.py:55
↓ 15 callersFunctionstrip_html
Remove HTML tags and decode HTML entities from description text.
lap/core/utils.py:17
↓ 14 callersMethod_make_result
(self, **overrides)
tests/test_search.py:161
↓ 14 callersFunctioncompile_proto
Compile a .proto file to LAP format.
lap/core/compilers/protobuf.py:724
↓ 14 callersMethodload
Load a .lap file and return a queryable document.
sdks/python/lap/client.py:93
↓ 13 callersFunction_slugify
Convert API name to a valid skill directory name.
lap/core/compilers/skill.py:160
↓ 13 callersFunctionresolve_ref
Resolve a $ref pointer in a spec with cycle detection.
lap/core/utils.py:87
↓ 11 callersFunction_maybe_resolve
If obj has $ref, resolve it; otherwise return obj.
lap/core/compilers/asyncapi.py:21
↓ 11 callersFunction_operation_to_endpoint
Convert Smithy operation to LAP Endpoint. Returns None if operation has no @http trait (not HTTP-bound).
lap/core/compilers/smithy.py:562
↓ 11 callersFunctioncmd_get
Download a LAP spec from the registry by name.
lap/cli/main.py:1442
↓ 11 callersFunctionget_spec
(name)
tests/test_asyncapi_compiler.py:18
↓ 11 callersFunctionmaybeResolve
(spec: Obj, obj: unknown)
sdks/typescript/src/compilers/asyncapi.ts:53
↓ 11 callersFunctionparse
(text: string)
sdks/typescript/src/parser.ts:323
↓ 10 callersFunction_infer_type
Infer LAP type from a JSON value.
lap/core/compilers/postman.py:233
↓ 10 callersFunction_parse_param
Parse a param like 'name: str(fmt) # desc' or 'limit: int=10 # desc'.
lap/core/parser.py:170
↓ 10 callersFunction_validate_registry_url
Ensure registry URL uses HTTPS (except localhost for dev).
lap/cli/main.py:798
↓ 10 callersFunctionextract_type
Extract a concise type string from a JSON Schema.
lap/core/compilers/asyncapi.py:30
↓ 10 callersMethodto_lap
(self, lean: bool = False)
lap/core/formats/lap_tools.py:33
↓ 9 callersFunction_make_search_args
(**overrides)
tests/test_lap_skill.py:99
↓ 9 callersFunction_read_metadata
Read lap-metadata.json for the given target. Returns {"skills": {}} if missing/corrupt.
lap/cli/main.py:762
↓ 9 callersFunctiongetRegistryUrl
()
sdks/typescript/src/auth.ts:19
↓ 9 callersFunctionparse_single_tool
Parse LAP text expected to contain a single tool.
lap/core/compilers/lap_tools_parser.py:164
↓ 9 callersMethodsearch
Fuzzy search across all LAP files.
sdks/python/lap/registry.py:38
↓ 8 callersFunction_is_likely_optional
Heuristic: infer if a raw JSON body field is optional based on its example value.
lap/core/compilers/postman.py:220
↓ 8 callersFunction_load_json_ast
Load and validate Smithy JSON AST.
lap/core/compilers/smithy.py:134
↓ 8 callersFunctioncompile_generic_json
Compile a generic JSON tool definition to LAP. Expects a dict with keys like: name, description, parameters/inputs, returns/outputs, auth
lap/core/compilers/lap_tools.py:231
↓ 8 callersFunctioncompile_mcp_tool
Compile a single MCP tool definition to LAP.
lap/core/compilers/lap_tools.py:45
↓ 8 callersFunctioncount_tokens
Count tokens using tiktoken. Falls back to len(text)//4 if unavailable.
lap/core/utils.py:53
↓ 8 callersFunctionget_registry_url
Get and validate the registry URL from the environment or default.
lap/cli/auth.py:75
↓ 8 callersFunctionparse_lap_tools
Parse LAP text into a LAPToolBundle (one or more tools). Returns a bundle even for single tools, for consistency.
lap/core/compilers/lap_tools_parser.py:81
↓ 7 callersFunction_extract_auth_scheme
Convert Postman auth object to LAP auth string.
lap/core/compilers/postman.py:310
↓ 7 callersFunction_extract_body_params
Extract request body parameters.
lap/core/compilers/postman.py:174
↓ 7 callersFunction_infer_auth_from_description
Last-resort: scan info.description for auth mentions.
lap/core/compilers/openapi.py:271
↓ 7 callersFunction_install_builtin_skill
Install a built-in skill (bundled with the package) to the target IDE directory.
lap/cli/main.py:726
↓ 7 callersFunction_is_valid_skill_name
Check if skill name is safe (no path traversal, no hidden files).
lap/cli/main.py:793
↓ 7 callersFunction_make_get_args
(**overrides)
tests/test_lap_skill.py:112
↓ 7 callersFunction_map_type
Map JSON Schema type to LAP compact type.
lap/core/compilers/lap_tools.py:32
↓ 7 callersFunction_metadata_path
Return path to lap-metadata.json for the given target platform.
lap/cli/main.py:753
↓ 7 callersFunction_parse_param_line
Parse '@in name:type? description' into a ToolParam.
lap/core/compilers/lap_tools_parser.py:22
↓ 7 callersFunction_split_top_level
Split string by separator, respecting nested braces, parens, and comments. A comma is only a field separator if the text after it looks like
lap/core/parser.py:41
↓ 7 callersFunction_write_introspection
Helper: build SDL -> introspection JSON -> write to tmp file.
tests/test_graphql_compiler.py:325
↓ 7 callersFunctioncmd_check
Check for LAP skill updates.
lap/cli/main.py:1243
↓ 7 callersFunctioncompile_skill_md
Compile an OpenClaw SKILL.md file to LAP.
lap/core/compilers/lap_tools.py:95
↓ 7 callersFunctiondetectFormat
(specPath: string)
sdks/typescript/src/compilers/index.ts:10
↓ 7 callersFunctionresolveRef
(spec: Record<string, unknown>, ref: string, _visited?: Set<string>)
sdks/typescript/src/compilers/openapi.ts:25
↓ 7 callersMethodto_lap
(self, lean: bool = False)
lap/core/formats/lap_tools.py:95
↓ 7 callersFunctionwarn
(msg)
lap/cli/main.py:70
↓ 6 callersFunction_extract_http_bindings
Extract HTTP bindings from operation input. Returns: (required_params, optional_params, request_body)
lap/core/compilers/smithy.py:458
↓ 6 callersFunction_find_lap_hook
Helper: find the LAP hook command in new-format hook entries.
tests/test_skill_update.py:665
↓ 6 callersFunction_register_claude_hook
Add SessionStart hook to .claude/settings.json (idempotent).
lap/cli/main.py:831
↓ 6 callersFunction_resolve_install_dir
Determine install directory based on target IDE and optional override.
lap/cli/main.py:715
↓ 6 callersFunction_resolve_lap_cmd
Resolve the lapsh CLI command, preferring global install over npx. On Windows, subprocess needs shell=True for .CMD wrappers (npx.CMD), so we
tests/test_lap_skill.py:560
↓ 6 callersFunction_resolve_variables
Replace {{var}} with values from the variable dict.
lap/core/compilers/postman.py:21
↓ 6 callersMethod_run
(self, *args, **kwargs)
tests/test_lap_skill.py:613
↓ 6 callersFunction_write_metadata
Atomically write lap-metadata.json for the given target.
lap/cli/main.py:777
↓ 6 callersFunctiondetectTarget
()
sdks/typescript/src/skill.ts:26
↓ 6 callersFunctiondetect_target
Auto-detect IDE target from environment. Detection priority: 1. TERM_PROGRAM env var (macOS/Linux -- set by IDE terminals) 2. IDE-specifi
lap/core/compilers/skill.py:25
↓ 6 callersFunctionparseTargetArg
(args: string[], i: number)
sdks/typescript/src/cli.ts:96
↓ 6 callersFunctionreadMetadata
(target: SkillTarget)
sdks/typescript/src/cli.ts:177
↓ 5 callersFunction_extract_auth_scheme
Map @auth trait to LAP auth string.
lap/core/compilers/smithy.py:256
↓ 5 callersFunction_extract_path
Extract the path portion from a Postman URL, stripping the base.
lap/core/compilers/postman.py:77
↓ 5 callersFunction_extract_query_params
Extract query parameters from a Postman URL object.
lap/core/compilers/postman.py:102
↓ 5 callersFunction_find_service
Find first service shape in model.
lap/core/compilers/smithy.py:230
↓ 5 callersFunction_get_url_string
Get URL string from Postman URL object or string.
lap/core/compilers/postman.py:60
↓ 5 callersFunction_infer_question_mapping
Infer natural language question-to-endpoint mappings mechanically. Algorithm: - GET /resources -> "List all {resources}?" - GE
lap/core/compilers/skill.py:388
↓ 5 callersMethod_make_stream
Create a mock HTTP response that yields lines.
tests/test_cli_auth.py:151
↓ 5 callersFunction_parse_field
Parse a response field like 'name: str?' or 'billing: map{x: str, y: int}'.
lap/core/parser.py:136
↓ 5 callersFunction_parse_returns
Parse @returns(CODE) {fields} # desc or @returns(CODE) desc.
lap/core/parser.py:254
↓ 5 callersMethod_round_trip
Compile OpenAPI → LAP → parse back and verify.
tests/test_parser.py:315
↓ 5 callersMethod_run
(self, *args, **kwargs)
tests/test_lap_skill.py:660
↓ 5 callersFunction_unwrap
Unwrap NonNull/List wrappers, return (base_type, type_string, nullable).
lap/core/compilers/graphql.py:40
↓ 5 callersFunctionapiRequest
( method: string, urlPath: string, body?: unknown, token?: string )
sdks/typescript/src/auth.ts:110
↓ 5 callersFunctionapi_request
Make an HTTP request to the registry. Returns parsed JSON or raises.
lap/cli/auth.py:116
↓ 5 callersFunctioncmd_diff
Diff two LAP files or compare installed skill vs registry latest.
lap/cli/main.py:1609
↓ 5 callersFunctioncompile_mcp_manifest
Compile a full MCP server manifest (with multiple tools) to LAP.
lap/core/compilers/lap_tools.py:73
↓ 5 callersFunctionextract_auth
Extract auth scheme from security definitions.
lap/core/compilers/openapi.py:294
↓ 5 callersFunctiongenerate_changelog
Generate a markdown changelog from two specs.
lap/core/differ.py:237
↓ 5 callersMethodgetEndpoint
(method: string, path: string)
sdks/typescript/src/parser.ts:62
↓ 5 callersFunctionisValidSkillName
(name: string)
sdks/typescript/src/cli.ts:210
next →1–100 of 1,430, ranked by callers