report-issue-local

File a bug or feature request against this MCP server's own repo. Use for server-specific issues — tool logic, service integrations, config problems, or domain bugs that aren't caused by the framework.

When to Use

The bug is in this server's code, not in @cyanheads/mcp-ts-core. Typical triggers:

  • A tool handler returns wrong results or throws on valid input
  • A service integration (external API, database, third-party SDK) fails or misbehaves
  • Server-specific config (server-config.ts) rejects valid env vars or has wrong defaults
  • Resource handlers return stale, incomplete, or incorrect data
  • Domain logic errors — wrong calculations, missing edge cases, bad state transitions
  • Missing or incorrect .describe() on schema fields causing poor LLM tool use

If the issue is in the framework itself (builders, Context, utilities, type exports, linter), use report-issue-framework instead.

Before Filing

  1. Identify the repo:
gh repo view --json nameWithOwner -q '.nameWithOwner'
  1. Search existing issues:
gh issue list --search "your error message or keyword"
  1. Reproduce the issue — confirm it's reproducible. Note the exact input, transport mode, and any relevant env vars.

  2. Check logs — review ctx.log output and any framework telemetry for clues. If running HTTP, check the response body for structured error details.

Redact Before Posting

GitHub issues are public. Do not include secrets, credentials, API keys, or tokens. Redact sensitive values from env vars, headers, and logs before submitting. Replace with obvious placeholders: REDACTED, sk-...REDACTED. Do not rely on partial masking — partial keys can still be exploited.

Filing a Bug

This repo includes YAML form issue templates (scaffolded from the framework). Use --web to open the form in the browser (preferred when available), or pass --title + --body for non-interactive use.

Browser (interactive)

gh issue create --template "Bug Report" --web

CLI (non-interactive)

Structure the --body to match the template's form fields:

gh issue create \
  --title "bug(tool_name): concise description" \
  --label "bug" \
  --body "$(cat <<'ISSUE'
### Server version

0.1.0

### mcp-ts-core version

0.1.29

### Runtime

Bun

### Runtime version

Bun 1.2.x

### Transport

stdio

### Description

What happened and what you expected instead.

### Steps to reproduce

1. Call `tool_name` with input: `{ "key": "value" }`
2. Observe error / wrong output

### Actual behavior

```
Error or incorrect output here
```

### Expected behavior

What should have happened.

### Additional context

Relevant `ctx.log` output, stack traces, or telemetry spans.
ISSUE
)"

Title conventions

Format: type(scope): description

  • type: bug, feat, docs, chore
  • scope: tool name, service name, resource name, config, auth, or domain area

Examples:

  • bug(search_docs): returns empty results for queries with special characters
  • feat(analytics): add date range filter to usage_report tool
  • docs(setup): .env.example missing REDIS_URL

Labels

LabelWhen
bugSomething broken
enhancementNew feature or improvement
docsDocumentation issue
configConfiguration or environment issue
regressionWorked before, broken after a change

Combine labels: --label "bug" --label "regression".

Attaching logs or large output

bun run dev:stdio 2>&1 | head -200 > /tmp/server-error.log

# As part of a new issue
gh issue create \
  --title "bug(ingest): crashes on large payload" \
  --label "bug" \
  --body-file /tmp/server-error.log

# Or as a comment on an existing issue
gh issue comment <number> --body-file /tmp/server-error.log

Filing a Feature Request

Browser (interactive)

gh issue create --template "Feature Request" --web

CLI (non-interactive)

gh issue create \
  --title "feat(scope): concise description" \
  --label "enhancement" \
  --body "$(cat <<'ISSUE'
### Use case

What problem does this solve? Who benefits?

### Proposed behavior

Describe the expected behavior or API change.

### Alternatives considered

What you tried or considered instead.
ISSUE
)"

Triage: Framework vs Server

Not sure where the bug lives? Quick checks:

SignalLikely frameworkLikely server
Error originates in node_modules/@cyanheads/mcp-ts-core/Yes
Error in src/mcp-server/tools/ or src/services/Yes
Same bug reproduces with a bare tool() definition (no services)Yes
Bug disappears when you swap in a dummy handlerYes
ctx.state, ctx.log, ctx.elicit behave wrong on any toolYes
Only one specific tool/resource is affectedYes

When genuinely ambiguous, file against this server's repo and note that it might be a framework issue. The maintainer can transfer it upstream.

Following Up

# View issue details
gh issue view <number>

# Add context
gh issue comment <number> --body "Additional findings..."

# List your open issues
gh issue list --author @me

# Close if resolved
gh issue close <number> --reason completed --comment "Fixed in <commit or PR>"

Checklist

  • Confirmed bug is in server code, not the framework
  • Searched existing issues — no duplicate found
  • All secrets, credentials, and tokens redacted
  • Issue filed with: version, runtime, repro steps, actual vs expected behavior