[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"workflow-asset-1421f19b":3,"seo:featured-workflow:1421f19b-4d78-11f1-9bc6-00163e2b0d79:en":83,"workflow-related-asset-1421f19b-1421f19b-4d78-11f1-9bc6-00163e2b0d79":84},{"id":4,"uuid":5,"slug":6,"title":7,"description":8,"author_id":9,"author_name":10,"author_avatar":11,"token_estimate":12,"time_saved":12,"model_used":11,"fork_count":12,"vote_count":12,"view_count":13,"parent_id":12,"parent_uuid":11,"lang_type":14,"steps":15,"tags":22,"has_voted":28,"visibility":18,"share_token":11,"is_featured":12,"content_hash":29,"asset_kind":30,"target_tools":31,"install_mode":35,"entrypoint":19,"risk_profile":36,"dependencies":39,"verification":44,"agent_metadata":47,"agent_fit":59,"trust":70,"provenance":79,"created_at":81,"updated_at":82},3131,"1421f19b-4d78-11f1-9bc6-00163e2b0d79","asset-1421f19b","MockServer — Mock Any Server or Service via HTTP and HTTPS","MockServer is a Java-based tool for mocking and proxying HTTP and HTTPS services. It lets developers define request-response expectations programmatically or via JSON, acting as a stub server for integration testing, a proxy recorder for capturing real traffic, and a verification tool for asserting expected API interactions.","8a910e34-3180-11f1-9bc6-00163e2b0d79","Script Depot","",0,6,"en",[16],{"id":17,"step_order":18,"title":19,"description":11,"prompt_template":20,"variables":11,"depends_on":21,"expected_output":11},3694,1,"MockServer API Mocking","# MockServer — Mock Any Server or Service via HTTP and HTTPS\n\n## Quick Use\n```bash\n# Run with Docker\ndocker run -d -p 1080:1080 mockserver\u002Fmockserver\n# Set up an expectation via REST API\ncurl -X PUT http:\u002F\u002Flocalhost:1080\u002Fmockserver\u002Fexpectation -d '{\"httpRequest\":{\"path\":\"\u002Fapi\u002Fusers\"},\"httpResponse\":{\"body\":\"{\"id\":1}\",\"statusCode\":200}}'\n# Test the mock\ncurl http:\u002F\u002Flocalhost:1080\u002Fapi\u002Fusers\n```\n\n## Introduction\nMockServer enables developers to mock any HTTP or HTTPS service for integration testing, development, and debugging. It supports defining expectations through a REST API, Java client, or JSON configuration, and can also act as a recording proxy that captures real traffic for later replay.\n\n## What MockServer Does\n- Stubs HTTP and HTTPS endpoints with configurable request matchers and response templates\n- Records and replays traffic when running as a proxy in front of real services\n- Verifies that expected requests were made with correct headers, body, and parameters\n- Supports dynamic responses with JavaScript templates, delays, and connection drops\n- Runs as a Docker container, JUnit rule, Maven plugin, or standalone JAR\n\n## Architecture Overview\nMockServer is a Netty-based Java application that listens on configured ports for HTTP and HTTPS connections. Incoming requests are matched against a list of expectations ordered by priority. Each expectation defines request matchers (path, headers, body, query params) and an action (respond, forward, callback, or error). When acting as a proxy, it forwards requests to the real service and records the exchange. The REST API and web UI allow runtime management of expectations and verification of logged requests.\n\n## Self-Hosting & Configuration\n- Run via Docker: `docker run -d -p 1080:1080 mockserver\u002Fmockserver`\n- Add as a Maven or Gradle dependency for JUnit-based test suites\n- Configure TLS with custom certificates for HTTPS mocking\n- Define expectations in JSON files loaded at startup for repeatable test environments\n- Use environment variables to set log levels, max expectations, and memory limits\n\n## Key Features\n- Rich request matching by path, regex, JSON body, JSON schema, XPath, and headers\n- Dynamic response templating with JavaScript, Velocity, or Mustache templates\n- Proxy mode records real API traffic and generates expectations automatically\n- Request verification API asserts that specific calls were made during a test\n- Web dashboard visualizes active expectations, logged requests, and matched responses\n\n## Comparison with Similar Tools\n- **WireMock** — Similar Java-based mocking; MockServer adds proxy recording and JavaScript templates\n- **MSW (Mock Service Worker)** — Browser and Node.js interception; MockServer is a standalone server for backend integration tests\n- **Hoverfly** — Go-based simulation proxy; MockServer has richer Java ecosystem integration\n- **Prism** — OpenAPI-based mock server; MockServer is schema-agnostic with manual expectation control\n- **JSON Server** — Simple REST fake server; MockServer provides full request matching and verification\n\n## FAQ\n**Q: Can MockServer mock WebSocket connections?**\nA: MockServer focuses on HTTP and HTTPS. For WebSocket mocking, consider using a dedicated WebSocket mock tool alongside it.\n\n**Q: How do I use MockServer in JUnit tests?**\nA: Add the mockserver-junit-jupiter dependency and use the @ExtendWith(MockServerExtension.class) annotation to automatically start and stop the server per test class.\n\n**Q: Can I simulate slow responses or errors?**\nA: Yes. Expectations support response delays, connection drops, and custom error codes to test timeout handling and error recovery in clients.\n\n**Q: Does MockServer support HTTPS with custom certificates?**\nA: Yes. You can provide your own CA certificate and private key so MockServer generates dynamic certificates for any hostname, enabling transparent HTTPS mocking.\n\n## Sources\n- https:\u002F\u002Fgithub.com\u002Fmock-server\u002Fmockserver\n- https:\u002F\u002Fwww.mock-server.com\u002F","0",[23],{"id":24,"name":25,"slug":26,"icon":27},11,"Scripts","script","📜",false,"92a2e4c03937c63670027fa18478bd27185d26904bb13121f6bf0028a3ec8787","skill",[32,33,34],"claude_code","codex","gemini_cli","single",{"executes_code":28,"modifies_global_config":28,"requires_secrets":37,"uses_absolute_paths":28,"network_access":38},[],true,{"npm":40,"pip":41,"brew":42,"system":43},[],[],[],[],{"commands":45,"expected_files":46},[],[19],{"asset_kind":30,"target_tools":48,"install_mode":35,"entrypoint":19,"risk_profile":49,"dependencies":51,"content_hash":29,"verification":56,"inferred":38},[32,33,34],{"executes_code":28,"modifies_global_config":28,"requires_secrets":50,"uses_absolute_paths":28,"network_access":38},[],{"npm":52,"pip":53,"brew":54,"system":55},[],[],[],[],{"commands":57,"expected_files":58},[],[19],{"target":33,"score":60,"status":61,"policy":62,"why":63,"asset_kind":30,"install_mode":35},64,"needs_confirmation","confirm",[64,65,66,67,68,69],"target_tools includes codex","asset_kind skill","install_mode single","policy confirm","risk_profile.network_access is true","trust established",{"author_trust_level":71,"verified_publisher":28,"asset_signed_hash":29,"signature_status":72,"install_count":12,"report_count":12,"dangerous_capability_badges":73,"review_status":75,"signals":76},"established","hash_only",[74],"network_access","unreviewed",[77,78],"author has published assets","content hash available",{"owner_uuid":9,"owner_name":10,"source_url":80,"content_hash":29,"visibility":18,"created_at":81,"updated_at":82},"https:\u002F\u002Ftokrepo.com\u002Fen\u002Fworkflows\u002Fasset-1421f19b","2026-05-12 04:29:15","2026-05-12 11:29:20",null,[85,144,190,238],{"id":86,"uuid":87,"slug":88,"title":89,"description":90,"author_id":9,"author_name":10,"author_avatar":11,"token_estimate":12,"time_saved":12,"model_used":11,"fork_count":12,"vote_count":12,"view_count":91,"parent_id":12,"parent_uuid":11,"lang_type":14,"steps":92,"tags":93,"has_voted":28,"visibility":18,"share_token":11,"is_featured":12,"content_hash":95,"asset_kind":30,"target_tools":96,"install_mode":35,"entrypoint":97,"risk_profile":98,"dependencies":100,"verification":105,"agent_metadata":108,"agent_fit":120,"trust":128,"provenance":132,"created_at":134,"updated_at":135,"__relatedScore":136,"__relatedReasons":137,"__sharedTags":142},2192,"3ceacfeb-41af-11f1-9bc6-00163e2b0d79","nock-http-server-mocking-expectations-node-js-3ceacfeb","Nock — HTTP Server Mocking and Expectations for Node.js","HTTP server mocking and expectations library for Node.js that intercepts outgoing requests for deterministic API testing.",87,[],[94],{"id":24,"name":25,"slug":26,"icon":27},"72bb3c1894df48eab04a9649314ca852aa64e0b3debac8800af52deb237ba285",[32,33,34],"Nock Overview",{"executes_code":28,"modifies_global_config":28,"requires_secrets":99,"uses_absolute_paths":28,"network_access":28},[],{"npm":101,"pip":102,"brew":103,"system":104},[],[],[],[],{"commands":106,"expected_files":107},[],[97],{"asset_kind":30,"target_tools":109,"install_mode":35,"entrypoint":97,"risk_profile":110,"dependencies":112,"content_hash":95,"verification":117},[32,33,34],{"executes_code":28,"modifies_global_config":28,"requires_secrets":111,"uses_absolute_paths":28,"network_access":28},[],{"npm":113,"pip":114,"brew":115,"system":116},[],[],[],[],{"commands":118,"expected_files":119},[],[97],{"target":33,"score":121,"status":122,"policy":123,"why":124,"asset_kind":30,"install_mode":35},98,"native","allow",[64,65,66,125,126,127,69],"markdown-only","policy allow","safe markdown-only Codex install",{"author_trust_level":71,"verified_publisher":28,"asset_signed_hash":95,"signature_status":72,"install_count":12,"report_count":12,"dangerous_capability_badges":129,"review_status":75,"signals":130},[],[77,78,131],"no dangerous capability badges",{"owner_uuid":9,"owner_name":10,"source_url":133,"content_hash":95,"visibility":18,"created_at":134,"updated_at":135},"https:\u002F\u002Ftokrepo.com\u002Fen\u002Fworkflows\u002Fnock-http-server-mocking-expectations-node-js-3ceacfeb","2026-04-27 04:33:52","2026-05-12 10:39:20",114.91672400822526,[138,139,140,141],"topic-match","same-kind","same-target","same-author",[26,143],"scripts",{"id":145,"uuid":146,"slug":147,"title":148,"description":149,"author_id":9,"author_name":10,"author_avatar":11,"token_estimate":12,"time_saved":12,"model_used":11,"fork_count":12,"vote_count":12,"view_count":60,"parent_id":12,"parent_uuid":11,"lang_type":14,"steps":150,"tags":151,"has_voted":28,"visibility":18,"share_token":11,"is_featured":12,"content_hash":153,"asset_kind":30,"target_tools":154,"install_mode":35,"entrypoint":155,"risk_profile":156,"dependencies":158,"verification":163,"agent_metadata":166,"agent_fit":178,"trust":180,"provenance":183,"created_at":185,"updated_at":186,"__relatedScore":187,"__relatedReasons":188,"__sharedTags":189},1958,"56d3225a-3e67-11f1-9bc6-00163e2b0d79","code-server-vs-code-browser-any-machine-56d3225a","code-server — VS Code in the Browser from Any Machine","Run a full VS Code IDE on a remote server and access it through your browser. Develop from any device with consistent environments and zero local setup.",[],[152],{"id":24,"name":25,"slug":26,"icon":27},"9c4c2bc806b4629e579df8761d8ff6e9320862f194ed9b92328e3ca698207edf",[32,33,34],"code-server Overview",{"executes_code":28,"modifies_global_config":28,"requires_secrets":157,"uses_absolute_paths":28,"network_access":38},[],{"npm":159,"pip":160,"brew":161,"system":162},[],[],[],[],{"commands":164,"expected_files":165},[],[155],{"asset_kind":30,"target_tools":167,"install_mode":35,"entrypoint":155,"risk_profile":168,"dependencies":170,"content_hash":153,"verification":175},[32,33,34],{"executes_code":28,"modifies_global_config":28,"requires_secrets":169,"uses_absolute_paths":28,"network_access":38},[],{"npm":171,"pip":172,"brew":173,"system":174},[],[],[],[],{"commands":176,"expected_files":177},[],[155],{"target":33,"score":60,"status":61,"policy":62,"why":179,"asset_kind":30,"install_mode":35},[64,65,66,67,68,69],{"author_trust_level":71,"verified_publisher":28,"asset_signed_hash":153,"signature_status":72,"install_count":12,"report_count":12,"dangerous_capability_badges":181,"review_status":75,"signals":182},[74],[77,78],{"owner_uuid":9,"owner_name":10,"source_url":184,"content_hash":153,"visibility":18,"created_at":185,"updated_at":186},"https:\u002F\u002Ftokrepo.com\u002Fen\u002Fworkflows\u002Fcode-server-vs-code-browser-any-machine-56d3225a","2026-04-23 00:21:38","2026-05-12 10:51:12",105.71937003496429,[138,139,140,141],[26,143],{"id":191,"uuid":192,"slug":193,"title":194,"description":195,"author_id":9,"author_name":10,"author_avatar":11,"token_estimate":12,"time_saved":12,"model_used":11,"fork_count":12,"vote_count":12,"view_count":196,"parent_id":12,"parent_uuid":11,"lang_type":14,"steps":197,"tags":198,"has_voted":28,"visibility":18,"share_token":11,"is_featured":12,"content_hash":200,"asset_kind":30,"target_tools":201,"install_mode":35,"entrypoint":202,"risk_profile":203,"dependencies":205,"verification":210,"agent_metadata":213,"agent_fit":225,"trust":227,"provenance":231,"created_at":233,"updated_at":234,"__relatedScore":235,"__relatedReasons":236,"__sharedTags":237},1695,"69db47d3-3abd-11f1-9bc6-00163e2b0d79","postgrest-instant-restful-api-any-postgresql-database-69db47d3","PostgREST — Instant RESTful API from Any PostgreSQL Database","PostgREST turns your PostgreSQL schema into a fully functional REST API with zero server-side code. Define tables, views, and functions in Postgres and get automatic CRUD endpoints with filtering, pagination, and role-based security.",122,[],[199],{"id":24,"name":25,"slug":26,"icon":27},"30c719d93b5e84dc6544d8d7b248b4c04bb2c892510727618d929f5e3f66abb9",[32,33,34],"PostgREST Overview",{"executes_code":28,"modifies_global_config":28,"requires_secrets":204,"uses_absolute_paths":28,"network_access":38},[],{"npm":206,"pip":207,"brew":208,"system":209},[],[],[],[],{"commands":211,"expected_files":212},[],[202],{"asset_kind":30,"target_tools":214,"install_mode":35,"entrypoint":202,"risk_profile":215,"dependencies":217,"content_hash":200,"verification":222},[32,33,34],{"executes_code":28,"modifies_global_config":28,"requires_secrets":216,"uses_absolute_paths":28,"network_access":38},[],{"npm":218,"pip":219,"brew":220,"system":221},[],[],[],[],{"commands":223,"expected_files":224},[],[202],{"target":33,"score":60,"status":61,"policy":62,"why":226,"asset_kind":30,"install_mode":35},[64,65,66,67,68,69],{"author_trust_level":71,"verified_publisher":28,"asset_signed_hash":200,"signature_status":72,"install_count":12,"report_count":12,"dangerous_capability_badges":228,"review_status":75,"signals":229},[74],[230,77,78],"asset has usage views",{"owner_uuid":9,"owner_name":10,"source_url":232,"content_hash":200,"visibility":18,"created_at":233,"updated_at":234},"https:\u002F\u002Ftokrepo.com\u002Fen\u002Fworkflows\u002Fpostgrest-instant-restful-api-any-postgresql-database-69db47d3","2026-04-18 08:27:42","2026-05-12 10:08:43",95.1348576671591,[138,139,140,141],[26,143],{"id":239,"uuid":240,"slug":241,"title":242,"description":243,"author_id":9,"author_name":10,"author_avatar":11,"token_estimate":12,"time_saved":12,"model_used":11,"fork_count":12,"vote_count":12,"view_count":244,"parent_id":12,"parent_uuid":11,"lang_type":14,"steps":245,"tags":246,"has_voted":28,"visibility":18,"share_token":11,"is_featured":12,"content_hash":248,"asset_kind":30,"target_tools":249,"install_mode":35,"entrypoint":250,"risk_profile":251,"dependencies":253,"verification":258,"agent_metadata":261,"agent_fit":273,"trust":275,"provenance":278,"created_at":280,"updated_at":281,"__relatedScore":282,"__relatedReasons":283,"__sharedTags":284},1798,"6c486f0a-3c2d-11f1-9bc6-00163e2b0d79","pangolin-identity-aware-reverse-proxy-built-tunneling-6c486f0a","Pangolin — Identity-Aware Reverse Proxy with Built-In Tunneling","Pangolin is a self-hosted reverse proxy and tunnel server that adds identity-aware access control to any service you expose, using WireGuard under the hood.",66,[],[247],{"id":24,"name":25,"slug":26,"icon":27},"6ead39dac689db311ea122b0c547c92adb555d255f5cf9da0da6ec155b08d929",[32,33,34],"Pangolin Overview",{"executes_code":28,"modifies_global_config":28,"requires_secrets":252,"uses_absolute_paths":28,"network_access":28},[],{"npm":254,"pip":255,"brew":256,"system":257},[],[],[],[],{"commands":259,"expected_files":260},[],[250],{"asset_kind":30,"target_tools":262,"install_mode":35,"entrypoint":250,"risk_profile":263,"dependencies":265,"content_hash":248,"verification":270},[32,33,34],{"executes_code":28,"modifies_global_config":28,"requires_secrets":264,"uses_absolute_paths":28,"network_access":28},[],{"npm":266,"pip":267,"brew":268,"system":269},[],[],[],[],{"commands":271,"expected_files":272},[],[250],{"target":33,"score":121,"status":122,"policy":123,"why":274,"asset_kind":30,"install_mode":35},[64,65,66,125,126,127,69],{"author_trust_level":71,"verified_publisher":28,"asset_signed_hash":248,"signature_status":72,"install_count":12,"report_count":12,"dangerous_capability_badges":276,"review_status":75,"signals":277},[],[77,78,131],{"owner_uuid":9,"owner_name":10,"source_url":279,"content_hash":248,"visibility":18,"created_at":280,"updated_at":281},"https:\u002F\u002Ftokrepo.com\u002Fen\u002Fworkflows\u002Fpangolin-identity-aware-reverse-proxy-built-tunneling-6c486f0a","2026-04-20 04:22:01","2026-05-12 10:05:19",92.73911220405124,[138,139,140,141],[26,143]]