veyra-snippets
veyra-snippets
AIエージェント向けの永続的なコードスニペット管理MCPツールです。言語フィルタリング、タグ検索、コードの全文検索機能を備えています。読み取りは常に無料です。書き込み操作にはVeyraのコミットモード認証が必要です。
概要
veyra-snippetsは、SQLiteをバックエンドとした信頼性の高いコードライブラリをAIエージェントに提供します。エージェントはスニペットを自由に閲覧・検索できます。スニペットの保存、更新、削除はVeyraコミットモードによって保護されており、意図的で説明責任のある書き込みを保証します。
Related MCP server: Snippets MCP
インストール
npm install
npm run buildスニペットは ~/.veyra-snippets/data.db に保存され、初回実行時に自動的に作成されます。
MCP設定 (Claude Desktop)
claude_desktop_config.json に以下を追加してください:
{
"mcpServers": {
"veyra-snippets": {
"command": "node",
"args": ["/absolute/path/to/veyra-snippets/dist/index.js"]
}
}
}ツール
ツール | 入力 | クラス | 価格 |
|
| — | 無料 |
|
| — | 無料 |
|
| — | 無料 |
|
| A | €0.005 |
|
| A | €0.005 |
|
| B | €0.02 |
使用例
読み取り (トークン不要)
// List all snippets
{ "tool": "list_snippets", "arguments": {} }
// List TypeScript snippets
{ "tool": "list_snippets", "arguments": { "language": "typescript" } }
// List snippets by tag
{ "tool": "list_snippets", "arguments": { "tag": "auth" } }
// Get a specific snippet
{ "tool": "get_snippet", "arguments": { "id": "1712345678-abc1234" } }
// Search across title, code, language, and tags
{ "tool": "search_snippets", "arguments": { "query": "debounce" } }書き込み (Veyraトークンが必要)
// Save a new snippet
{
"tool": "save_snippet",
"arguments": {
"title": "Debounce utility",
"code": "function debounce(fn, ms) {\n let timer;\n return (...args) => {\n clearTimeout(timer);\n timer = setTimeout(() => fn(...args), ms);\n };\n}",
"language": "javascript",
"tags": "utility,performance",
"veyra_token": "vt_..."
}
}
// Update snippet code
{
"tool": "update_snippet",
"arguments": {
"id": "1712345678-abc1234",
"code": "// updated code here",
"veyra_token": "vt_..."
}
}
// Delete a snippet
{
"tool": "delete_snippet",
"arguments": {
"id": "1712345678-abc1234",
"veyra_token": "vt_..."
}
}トークンがない場合のエラーレスポンス
{
"error": "VeyraCommitRequired",
"message": "Write operations require Veyra commit mode.",
"currentMode": "open",
"requiredMode": "commit",
"transitionStrategy": "authorize_then_retry_with_x_veyra_token",
"provider": "veyra",
"authorize_endpoint": "https://api.veyra.to/v1/authorize-action",
"docs_url": "https://veyra.to"
}Veyraの仕組み
Veyraは、AIエージェントのためのコミットモード認証レイヤーです。エージェントが書き込み操作を試みると:
エージェントが
veyra_tokenなしでツールを呼び出すと、authorize_endpointを含むVeyraCommitRequiredエラーが返されます。エージェント(またはユーザー)が認証エンドポイントを呼び出し、トークンを取得します。
エージェントは
veyra_tokenを設定してツール呼び出しを再試行します。veyra-snippetsは書き込みを実行する前に@veyrahq/sdk-nodeを介してトークンを検証します。
詳細なドキュメントは veyra.to を参照してください。
ライセンス
MIT
ホスト型パック (推奨)
1つのURLで統合できるホスト型パックを推奨します:
{
"mcpServers": {
"veyra": {
"url": "https://mcp.veyra.to/sse"
}
}
}1つのURL。48個のツール。24個の無料読み取り。24個の保護された書き込み。
ホスト型パック: https://mcp.veyra.to/sse
パックマニフェスト: https://mcp.veyra.to/.well-known/veyra-pack.json
すべてのVeyraツールファミリーにわたって最も迅速なMCP統合パスが必要な場合は、ホスト型パックを使用してください。 このツール単体が必要な場合は、このスタンドアロンパッケージを使用してください。
Veyraエコシステムの一部
Veyraは、本番環境のAIエージェントアクションのためのコミットモードです。 すべてのツール:読み取りは無料、書き込みにはVeyraコミットモードが必要です。
ツール | 説明 | インストール |
キーバリューストア |
| |
タグ付きメモ作成 |
| |
タスク管理 |
| |
ブックマーク管理 |
| |
連絡先管理 |
| |
フォームビルダー |
| |
Webhook送信 |
|
SDK: npm install @veyrahq/sdk-node ウェブサイト: veyra.to
This server cannot be deployed
Maintenance
Related MCP Connectors
Code intelligence for coding agents: semantic, AST, graph, and full-text search. 279+ languages.
Shared memory for AI coding agents. Save once, reuse from Cursor, Claude Code, Codex.
Shared memory for coding agents. Stop re-explaining your codebase every session.
Code intelligence for LLMs. Analyze, search, and retrieve code from any public git repository.
Related MCP Servers
- AlicenseAqualityFmaintenanceProvides code repository indexing and semantic search capabilities, allowing natural language queries to find relevant code snippets with automatic incremental indexing and multi-language support.15 npm359ISC
- AlicenseNot gradedqualityCmaintenanceEnables storing, searching, and managing code snippets using hybrid semantic search and keyword matching with automatic language detection and tag-based organization.4 npm2MIT
- AlicenseNot gradedqualityDmaintenanceProvides intelligent code context management and semantic search capabilities for software development, enabling natural language queries to find relevant code snippets, functions, and classes across Python, JavaScript, TypeScript, and SQL codebases.MIT
- AlicenseNot gradedqualityBmaintenanceIndexes codebases and lets AI agents retrieve precise code snippets (functions, classes, routes) instead of reading entire files, reducing token usage and improving accuracy.169 npm7MIT