How to Use the Glob Pattern Tester MCP in LangChain
Test file path matching inside your LangChain reasoning loops using the exact glob matching engine behind git and npm.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Glob Pattern Tester MCP to LangChain
Create your Vinkius account to connect Glob Pattern Tester to LangChain and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Validate CI paths in LangChain chains
The `test_glob` tool lets your LangChain agent run file path matches using standard npm rules directly inside your execution chains. Your agent calls this tool to verify if a modified file belongs to a specific deployment directory before triggering downstream pipeline steps. By feeding the output of one step as the input to the next, your chain makes real-time decisions about code paths. You get complete execution tracing in LangSmith, showing the exact pattern evaluated and the resulting match boolean.
Filter dynamic file lists inside LangChain agents
The `test_glob` tool allows your LangChain agent to filter massive lists of repository paths using standard gitignore rules. Instead of writing custom regex, the agent feeds raw file paths into the matching engine to isolate test files or source code. This integration prevents your agent from processing unwanted files in multi-step reasoning runs. The agent automatically discards non-matching paths based on the boolean result, keeping your token usage low and your context clean.
Run the Glob Pattern Tester MCP Server locally
The `test_glob` tool runs locally within a secure sandbox, giving your LangChain agent direct access to path-matching operations without exposing your actual directory structure. You connect the MCP server using the standard HTTP transport adapter and register the tool in your agent constructor. This setup isolates the evaluation logic from your main application runtime. Your agent safely tests wildcards and recursive directory patterns, receiving instant true-or-false responses without executing arbitrary shell commands.
Set up Glob Pattern Tester MCP in LangChain
Prerequisites
- Python 3.10+ installed
-
langchain-mcp-adapters+langgraphpackages - Active Vinkius subscription with a valid endpoint token
- 1
Install dependencies
Run
pip install langchain-mcp-adapters langgraph langchain-openai. The MCP adapters package converts MCP tools into native LangChainBaseToolobjects. - 2
Connect via HTTP transport
Use
MultiServerMCPClientwith"transport": "http"pointing to your Vinkius endpoint. Replace[YOUR_TOKEN_HERE]with your token from cloud.vinkius.com. - 3
Create a ReAct agent
Pass the discovered tools to
create_react_agent()from LangGraph. The agent automatically routes Glob Pattern Tester tool calls through the MCP protocol. - 4
Run with any LLM
Swap
ChatOpenAIforChatAnthropic,ChatGoogleGenerativeAI, or any LangChain-compatible model. The MCP tools work identically across all providers.
from langchain_mcp_adapters.client import MultiServerMCPClient
from langgraph.prebuilt import create_react_agent
from langchain_openai import ChatOpenAI
async with MultiServerMCPClient({
"glob-pattern-tester-mcp": {
"transport": "http",
"url": "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp",
}
}) as client:
tools = client.get_tools()
agent = create_react_agent(
ChatOpenAI(model="gpt-4o"),
tools,
)
result = await agent.ainvoke({
"messages": "List recent Glob Pattern Tester transactions"
})
print(result["messages"][-1].content) Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by minimatch. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.
Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about Glob Pattern Tester MCP in LangChain
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Glob Pattern Tester MCP today
We host it, we monitor it, we maintain it. You just paste one token.