open-metadata/ai-sdk · Archived

run-integration

Use when running integration tests against a real Metadata instance. Guides setup of environment variables (AI_SDK_HOST, AI_SDK_TOKEN) and runs tests that make actual API calls.

First seen Jun 20, 2026

Installation

$ npx skills add open-metadata/ai-sdk --skill run-integration

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 9
License LICENSE
Default branch main
Open issues 0
Status Archived

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,319 B
  • docs SUMMARY.md 200 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Run Integration Tests

Runs integration tests against a real Metadata instance. These tests use actual API calls.

Usage

/run-integration [sdk]

Where [sdk] is optional: python, typescript, java, cli, n8n, or all (default).

Prerequisites

Integration tests require environment variables:

  • AISDKHOST - Base URL of the Metadata instance (e.g., https://your-instance.getcollate.io)
  • AISDKTOKEN - Valid JWT token for authentication
  • AISDKTEST_AGENT - (Optional) Name of agent to test with

Commands

Run All Integration Tests

AI_SDK_HOST=https://... AI_SDK_TOKEN=... make test-integration

Run Individual SDK Tests

Python:

cd python && AI_SDK_HOST=... AI_SDK_TOKEN=... pytest tests/integration/ -v

TypeScript:

cd typescript && AI_SDK_HOST=... AI_SDK_TOKEN=... npm run test:integration

Java:

cd java && AI_SDK_HOST=... AI_SDK_TOKEN=... mvn test -Dtest=IntegrationTest

Rust CLI:

cd cli && AI_SDK_HOST=... AI_SDK_TOKEN=... cargo test --test integration_test

n8n:

cd n8n-nodes-metadata && AI_SDK_HOST=... AI_SDK_TOKEN=... npm run test:integration

What Integration Tests Verify

  1. Authentication - Token is valid and accepted
  2. Agent Discovery - Can list available agents
  3. Agent Invocation - Can invoke an agent and get response
  4. Streaming - SSE streaming works correctly (if AISDKRUNCHATTESTS=true)
  5. Error Handling - Proper errors for invalid requests

Troubleshooting

Error Cause Fix
401 Unauthorized Invalid/expired token Get fresh token from Metadata UI
404 Not Found Agent doesn't exist Check AISDKTEST_AGENT value
Connection refused Wrong host URL Verify AISDKHOST
Timeout Network/firewall issue Check connectivity

Notes

  • Integration tests are skipped in CI unless secrets are configured
  • Tests use real AI tokens when AISDKRUNCHATTESTS=true
  • Always test locally before pushing changes that affect API calls